mirror of
https://github.com/andvikt/mega_hacs.git
synced 2025-12-12 01:24:29 +05:00
fix some bugs
This commit is contained in:
@@ -145,6 +145,7 @@ class MegaD:
|
||||
ftr.set_result(json.loads(msg.payload).get('value'))
|
||||
except Exception as exc:
|
||||
self.lg.warning(f'could not parse {msg.payload}: {exc}')
|
||||
ftr.set_result(None)
|
||||
unsub = await self.mqtt.async_subscribe(
|
||||
topic=f'{self.mqtt_id}/{port}',
|
||||
msg_callback=cb,
|
||||
|
||||
Reference in New Issue
Block a user