Skip to content
Snippets Groups Projects
Commit 26907d94 authored by KERDREUX Jerome's avatar KERDREUX Jerome
Browse files

Formating, fix ruff errors

parent 0e88f033
Branches
No related tags found
No related merge requests found
......@@ -106,7 +106,7 @@ class MetaDB(object):
if dev:
# if _map is empty, remove the device
if _map == None:
if _map is None:
# self.cfg['devices'].pop(str(_device))
dev = {}
self.dirty = True
......@@ -116,15 +116,15 @@ class MetaDB(object):
updated.update({k:_map[k]})
self.dirty = True
# remove item if empty
if _map[k] == None:
if _map[k] is None:
dev.pop(k)
else:
dev.update({k:_map[k]})
elif _map != None:
elif _map is not None:
updated = {}
for k, v in _map.items():
if v != None:
if v is not None:
updated.update({k:v})
self.cfg['devices'][str(_device)]=updated
self.dirty = True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment