fix mqtt sensor

This commit is contained in:
Andrey
2021-01-28 12:04:43 +03:00
parent c36c1369aa
commit 3b6459468b
2 changed files with 3 additions and 3 deletions

View File

@@ -209,9 +209,9 @@ class MegaD:
raise NoPort()
if ':' in ret:
ret = PATT_SPLIT.split(ret)
ret = dict([
ret = {'value': dict([
x.split(':') for x in ret if x.count(':') == 1
])
])}
elif 'ON' in ret:
ret = {'value': 'ON'}
elif 'OFF' in ret: