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, 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)"