mirror of https://github.com/Andre0512/pyhOn.git
Merge pull request #2 from alexandre-leites/fix/support-hw500
Fixing Support for H-WASHER 500
This commit is contained in:
commit
2941b57d09
|
@ -70,7 +70,7 @@ class HonConnection:
|
||||||
"applianceType": device.appliance_type,
|
"applianceType": device.appliance_type,
|
||||||
"code": device.appliance["code"],
|
"code": device.appliance["code"],
|
||||||
"applianceModelId": device.appliance_model_id,
|
"applianceModelId": device.appliance_model_id,
|
||||||
"firmwareId": "41",
|
"firmwareId": device.appliance["eepromId"],
|
||||||
"macAddress": device.mac_address,
|
"macAddress": device.mac_address,
|
||||||
"fwVersion": device.appliance["fwVersion"],
|
"fwVersion": device.appliance["fwVersion"],
|
||||||
"os": const.OS,
|
"os": const.OS,
|
||||||
|
|
|
@ -30,7 +30,7 @@ class HonParameter:
|
||||||
class HonParameterFixed(HonParameter):
|
class HonParameterFixed(HonParameter):
|
||||||
def __init__(self, key, attributes):
|
def __init__(self, key, attributes):
|
||||||
super().__init__(key, attributes)
|
super().__init__(key, attributes)
|
||||||
self._value = attributes["fixedValue"]
|
self._value = attributes.get("fixedValue", None)
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return f"{self.__class__} (<{self.key}> fixed)"
|
return f"{self.__class__} (<{self.key}> fixed)"
|
||||||
|
|
Loading…
Reference in New Issue