mirror of
https://github.com/Andre0512/pyhOn.git
synced 2024-01-19 02:50:44 +00:00
Override Oven attributes when is disconnected
This commit is contained in:
parent
36079c3c77
commit
18b0ecdd68
|
@ -8,6 +8,12 @@ class Appliance:
|
||||||
self._program_filter = HonParameterEnum("program_filter", data)
|
self._program_filter = HonParameterEnum("program_filter", data)
|
||||||
|
|
||||||
def data(self, 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
|
return data
|
||||||
|
|
||||||
def settings(self, settings):
|
def settings(self, settings):
|
||||||
|
|
Loading…
Reference in a new issue