mirror of
https://github.com/andvikt/mega_hacs.git
synced 2025-12-12 01:24:29 +05:00
smaller headers
This commit is contained in:
10
custom_components/mega/tools.py
Normal file
10
custom_components/mega/tools.py
Normal file
@@ -0,0 +1,10 @@
|
||||
def make_ints(d: dict):
|
||||
for x in d:
|
||||
try:
|
||||
d[x] = float(d[x])
|
||||
except ValueError:
|
||||
pass
|
||||
if 'm' not in d:
|
||||
d['m'] = 0
|
||||
if 'click' not in d:
|
||||
d['click'] = 0
|
||||
Reference in New Issue
Block a user