From a9fd05f3f5874d1fcbb2b5e38f06bd521ca9d9b1 Mon Sep 17 00:00:00 2001 From: Vadym Melnychuk Date: Tue, 11 Jul 2023 17:40:04 +0300 Subject: [PATCH] fixed build --- pyhon/appliances/wh.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyhon/appliances/wh.py b/pyhon/appliances/wh.py index cc54f29..9016646 100644 --- a/pyhon/appliances/wh.py +++ b/pyhon/appliances/wh.py @@ -5,4 +5,6 @@ from pyhon.appliances.base import ApplianceBase class Appliance(ApplianceBase): def attributes(self, data: Dict[str, Any]) -> Dict[str, Any]: data = super().attributes(data) - data["active"] = data.get("onOffStatus") == 1 \ No newline at end of file + data["active"] = data["parameters"]["onOffStatus"] == "1" + + return data \ No newline at end of file