mirror of
https://github.com/andvikt/mega_hacs.git
synced 2025-12-12 01:24:29 +05:00
fix mqtt
This commit is contained in:
@@ -2,7 +2,7 @@ def make_ints(d: dict):
|
||||
for x in d:
|
||||
try:
|
||||
d[x] = float(d[x])
|
||||
except ValueError:
|
||||
except (ValueError, TypeError):
|
||||
pass
|
||||
if 'm' not in d:
|
||||
d['m'] = 0
|
||||
|
||||
Reference in New Issue
Block a user