Oven overwrite #12

Merged
MiguelAngelLV merged 8 commits from main into main 2023-04-19 20:18:32 +02:00
Showing only changes of commit 18b0ecdd68 - Show all commits

View File

@ -8,6 +8,12 @@ class Appliance:
self._program_filter = HonParameterEnum("program_filter", data)
def data(self, data):
if data["attributes"]["lastConnEvent"]["category"] == "DISCONNECTED":
data["attributes"]["activity"]["attributes"]["temp"] = "0"
data["attributes"]["activity"]["attributes"]["onOffStatus"] = "0"
data["attributes"]["activity"]["attributes"]["remoteCtrValid"] = "0"
data["attributes"]["activity"]["attributes"]["remainingTimeMM"] = "0"
return data
def settings(self, settings):