Skip to content

Commit

Permalink
Merge pull request #15 from andrey-git/avail_version
Browse files Browse the repository at this point in the history
Publish available version
  • Loading branch information
gjohansson-ST authored Apr 16, 2022
2 parents a5f8442 + a1f059b commit 92a36e1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pysensibo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ async def async_get_devices_data(self) -> SensiboData:
state = hvac_mode if hvac_mode else "off"

fw_ver = dev["firmwareVersion"]
fw_ver_available = dev.get("currentlyAvailableFirmwareVersion")
fw_type = dev["firmwareType"]
model = dev["productModel"]

Expand Down Expand Up @@ -178,6 +179,7 @@ async def async_get_devices_data(self) -> SensiboData:
full_features=full_features,
state=state,
fw_ver=fw_ver,
fw_ver_available=fw_ver_available,
fw_type=fw_type,
model=model,
calibration_temp=calibration_temp,
Expand Down
1 change: 1 addition & 0 deletions pysensibo/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class SensiboDevice:
full_features: set[str]
state: str
fw_ver: str
fw_ver_available: str | None
fw_type: str
model: str
calibration_temp: float | None
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
print(find_packages())
setup(
name='pysensibo',
version='1.0.9',
version='1.0.10',
description='asyncio-friendly python API for Sensibo',
long_description='asyncio-friendly python API for Sensibo'
'(https://sensibo.com). Requires Python 3.4+',
Expand Down

0 comments on commit 92a36e1

Please sign in to comment.