From ec7355e341bcac4be6f8cb119ce75126fc5f1073 Mon Sep 17 00:00:00 2001 From: Alexandre Leites <1256013+alexandre-leites@users.noreply.github.com> Date: Mon, 13 Mar 2023 03:58:45 +0100 Subject: [PATCH 1/2] Update api.py to correctly set firmwareId --- pyhon/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyhon/api.py b/pyhon/api.py index 2903d7e..e83c100 100644 --- a/pyhon/api.py +++ b/pyhon/api.py @@ -70,7 +70,7 @@ class HonConnection: "applianceType": device.appliance_type, "code": device.appliance["code"], "applianceModelId": device.appliance_model_id, - "firmwareId": "41", + "firmwareId": device.appliance["eepromId"], "macAddress": device.mac_address, "fwVersion": device.appliance["fwVersion"], "os": const.OS, -- 2.39.2 From f00ee03c0d7c4f107ac26728500789f122ef4fec Mon Sep 17 00:00:00 2001 From: Alexandre Leites <1256013+alexandre-leites@users.noreply.github.com> Date: Mon, 13 Mar 2023 03:59:42 +0100 Subject: [PATCH 2/2] Update parameter.py to support missing parameter in some cases with HW5600 --- pyhon/parameter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyhon/parameter.py b/pyhon/parameter.py index 361d05d..2970fd9 100644 --- a/pyhon/parameter.py +++ b/pyhon/parameter.py @@ -30,7 +30,7 @@ class HonParameter: class HonParameterFixed(HonParameter): def __init__(self, key, attributes): super().__init__(key, attributes) - self._value = attributes["fixedValue"] + self._value = attributes.get("fixedValue", None) def __repr__(self): return f"{self.__class__} (<{self.key}> fixed)" -- 2.39.2