adding check for battery bug
This commit is contained in:
parent
84e171dbdb
commit
7378e680ba
@ -55,7 +55,7 @@ p = re.compile("([a-fA-F0-9]{2}:?){8}")
|
||||
sensors = collections.defaultdict(list);
|
||||
|
||||
for key in json_data:
|
||||
if "uniqueid" in json_data[key] and json_data[key]['state']['presence']:
|
||||
if "uniqueid" in json_data[key]:
|
||||
if p.search(json_data[key]['uniqueid']):
|
||||
if json_data[key]['type'] == 'ZLLPresence':
|
||||
sensors[json_data[key]['uniqueid'][:-8]].insert(0, key)
|
||||
|
Loading…
Reference in New Issue
Block a user