Print all keys

This commit is contained in:
Andre Basche 2023-03-08 21:53:53 +01:00
parent 5acc81acc3
commit c4d21be388
4 changed files with 16 additions and 4 deletions

View file

@ -5,4 +5,5 @@ class Appliance:
def get(self):
if self._data["attributes"]["lastConnEvent"]["category"] == "DISCONNECTED":
self._data["attributes"]["parameters"]["machMode"] = "0"
self._data["active"] = bool(self._data.get("activity"))
return self._data