mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 10:17:09 +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
|
@property
|
||||||
def device_info(self) -> DeviceInfo:
|
def device_info(self) -> DeviceInfo:
|
||||||
"""Return the device information for this entity."""
|
"""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(
|
return DeviceInfo(
|
||||||
identifiers={(DOMAIN, self._config.entry_id)},
|
identifiers={(DOMAIN, self._config.entry_id)},
|
||||||
name=self._client.name,
|
name=self._client.name,
|
||||||
manufacturer="Venstar",
|
manufacturer="Venstar",
|
||||||
model=f"{self._client.model}-{self._client.get_type()}",
|
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