From d4e57931863620595aa7a3c0848bde89c32a0485 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mguel=20=C3=81ngel?= Date: Sun, 26 Nov 2023 13:36:41 +0100 Subject: [PATCH] Fix check active oven --- pyhon/appliances/ov.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pyhon/appliances/ov.py b/pyhon/appliances/ov.py index 9ebbb87..21831a3 100644 --- a/pyhon/appliances/ov.py +++ b/pyhon/appliances/ov.py @@ -7,10 +7,10 @@ class Appliance(ApplianceBase): def attributes(self, data: Dict[str, Any]) -> Dict[str, Any]: data = super().attributes(data) if data.get("lastConnEvent", {}).get("category", "") == "DISCONNECTED": - data["parameters"]["temp"].value = "0" - data["parameters"]["onOffStatus"].value = "0" - data["parameters"]["remoteCtrValid"].value = "0" - data["parameters"]["remainingTimeMM"].value = "0" + data["parameters"]["temp"].value = 0 + data["parameters"]["onOffStatus"].value = 0 + data["parameters"]["remoteCtrValid"].value = 0 + data["parameters"]["remainingTimeMM"].value = 0 - data["active"] = data["parameters"]["onOffStatus"] == "1" + data["active"] = data["parameters"]["onOffStatus"].value == 1 return data