mirror of
https://github.com/Andre0512/pyhOn.git
synced 2025-05-20 09:55:09 -04:00
Merge branch 'refactor2'
This commit is contained in:
commit
66cb7bcc24
11 changed files with 291 additions and 122 deletions
|
@ -5,7 +5,7 @@ class Appliance(ApplianceBase):
|
|||
def attributes(self, data):
|
||||
data = super().attributes(data)
|
||||
if data.get("lastConnEvent", {}).get("category", "") == "DISCONNECTED":
|
||||
data["parameters"]["machMode"] = "0"
|
||||
data["parameters"]["machMode"].value = "0"
|
||||
data["active"] = bool(data.get("activity"))
|
||||
data["pause"] = data["parameters"]["machMode"] == "3"
|
||||
return data
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue