Compare commits

...

5 Commits

Author SHA1 Message Date
Andre Basche aeabbe64e2 Bump version to v0.3.6 2023-03-13 23:08:17 +01:00
Andre Basche 7c99ffeaf7 Ignore virtual virtual wine cellar #3 2023-03-13 23:07:36 +01:00
Andre Basche 2941b57d09 Merge pull request #2 from alexandre-leites/fix/support-hw500
Fixing Support for H-WASHER 500
2023-03-13 22:32:17 +01:00
Alexandre Leites f00ee03c0d Update parameter.py to support missing parameter in some cases with HW5600 2023-03-13 03:59:42 +01:00
Alexandre Leites ec7355e341 Update api.py to correctly set firmwareId 2023-03-13 03:58:45 +01:00
3 changed files with 6 additions and 4 deletions
+4 -2
View File
@@ -55,11 +55,13 @@ class HonConnection:
appliances = (await resp.json())["payload"]["appliances"]
for appliance in appliances:
device = HonDevice(self, appliance)
if device.mac_address is None:
continue
await asyncio.gather(*[
device.load_attributes(),
device.load_commands(),
device.load_statistics()])
self._devices.append(device)
self._devices.append(device)
except json.JSONDecodeError:
_LOGGER.error("No JSON Data after GET: %s", await resp.text())
return False
@@ -70,7 +72,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,
+1 -1
View File
@@ -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)"
+1 -1
View File
@@ -7,7 +7,7 @@ with open("README.md", "r") as f:
setup(
name="pyhOn",
version="0.3.5",
version="0.3.6",
author="Andre Basche",
description="Control hOn devices with python",
long_description=long_description,