Skip to content

Commit

Permalink
feat: ✨ add device info that shows firmware version
Browse files Browse the repository at this point in the history
  • Loading branch information
taarskog committed Aug 19, 2024
1 parent d0fc60c commit 834763e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
11 changes: 11 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]

[dev-packages]

[requires]
python_version = "3.12"
4 changes: 2 additions & 2 deletions custom_components/somweb/cover.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def __init__(self, client: SomwebClient, somweb_device_info: SomwebDeviceInfo, d
self._unique_id: str = f"{client.udi}_{door.id}"
self._available: bool = True
self._id_in_log = f"'{self._name} ({client.udi}_{door.id})'"
self._device_info = somweb_device_info
self._device_info: SomwebDeviceInfo = somweb_device_info

@property
def device_info(self) -> DeviceInfo:
Expand All @@ -93,7 +93,7 @@ def device_info(self) -> DeviceInfo:
manufacturer="Sommer",
model="SOMweb",
# configuration_url=,
sw_version=self._device_info.sw_version if self._device_info else None,
sw_version=self._device_info.firmware_version if self._device_info else None,
)

@property
Expand Down

0 comments on commit 834763e

Please sign in to comment.