mirror of
https://github.com/Andre0512/pyhOn.git
synced 2025-05-27 13:14:21 -04:00
Clean up attribute structure
This commit is contained in:
parent
43d61ab853
commit
5acc81acc3
6 changed files with 95 additions and 121 deletions
|
@ -3,6 +3,6 @@ class Appliance:
|
|||
self._data = data
|
||||
|
||||
def get(self):
|
||||
if self._data["lastConnEvent.category"] == "DISCONNECTED":
|
||||
self._data["machMode"] = "0"
|
||||
if self._data["attributes"]["lastConnEvent"]["category"] == "DISCONNECTED":
|
||||
self._data["attributes"]["parameters"]["machMode"] = "0"
|
||||
return self._data
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue