mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 08:47:57 +00:00
Fix firmware version parsing in venstar (#127974)
This commit is contained in:
parent
99eb466223
commit
053e2a52b8
@ -34,11 +34,11 @@ class VenstarEntity(CoordinatorEntity[VenstarDataUpdateCoordinator]):
|
||||
@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]}",
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user