Skip to content

Commit

Permalink
Bug Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
veista committed Dec 11, 2022
1 parent 576bd15 commit 1946738
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions custom_components/nilan/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ async def setup(self):
self._device_type = CTS602_DEVICE_TYPES[hw_type]
if bus_version >= 10: # PH
co2_present = await self.get_co2_present()
else:
co2_present = True
for entity, value in CTS602_ENTITY_MAP.items():
if bus_version >= value["min_bus_version"] and (
hw_type in value["supported_devices"]
Expand All @@ -80,6 +82,8 @@ async def setup(self):
self._attributes[entity] = value["entity_type"]
else:
self._attributes[entity] = value["entity_type"]
if "get_controller_hardware_version" in self._attributes:
self._device_hw_ver = await self.get_controller_hardware_version()

def get_assigned(self, platform: str):
"""get platform assignment"""
Expand Down
2 changes: 1 addition & 1 deletion custom_components/nilan/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"domain": "nilan",
"name": "Nilan",
"version": "1.1.0",
"version": "1.1.1",
"config_flow": true,
"documentation": "https://github.com/veista/nilan",
"requirements": ["pymodbus==2.5.3"],
Expand Down

0 comments on commit 1946738

Please sign in to comment.