mirror of
https://github.com/andvikt/mega_hacs.git
synced 2026-02-03 16:07:45 +05:00
fix mqtt sensor
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user