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