Skip to content

Commit

Permalink
Fix firmware version parsing in venstar (home-assistant#127974)
Browse files Browse the repository at this point in the history
  • Loading branch information
epenet authored Oct 9, 2024
1 parent 99eb466 commit 053e2a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions homeassistant/components/venstar/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ def _handle_coordinator_update(self) -> None:
@property
def device_info(self) -> DeviceInfo:
"""Return the device information for this entity."""
fw_ver_major, fw_ver_minor = self._client.get_firmware_ver()
firmware_version = self._client.get_firmware_ver()
return DeviceInfo(
identifiers={(DOMAIN, self._config.entry_id)},
name=self._client.name,
manufacturer="Venstar",
model=f"{self._client.model}-{self._client.get_type()}",
sw_version=f"{fw_ver_major}.{fw_ver_minor}",
sw_version=f"{firmware_version[0]}.{firmware_version[1]}",
)

0 comments on commit 053e2a5

Please sign in to comment.