Correct Venstar firmware version to use device's FW version instead of API version (#98493)

This commit is contained in:
John Hollowell 2023-09-13 02:35:59 -04:00 committed by GitHub
parent 09f58ec396
commit e87603aa59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 5 deletions

View File

@ -1361,8 +1361,8 @@ build.json @home-assistant/supervisor
/homeassistant/components/velbus/ @Cereal2nd @brefra
/tests/components/velbus/ @Cereal2nd @brefra
/homeassistant/components/velux/ @Julius2342
/homeassistant/components/venstar/ @garbled1
/tests/components/venstar/ @garbled1
/homeassistant/components/venstar/ @garbled1 @jhollowe
/tests/components/venstar/ @garbled1 @jhollowe
/homeassistant/components/verisure/ @frenck
/tests/components/verisure/ @frenck
/homeassistant/components/versasense/ @imstevenxyz

View File

@ -153,5 +153,5 @@ class VenstarEntity(CoordinatorEntity[VenstarDataUpdateCoordinator]):
name=self._client.name,
manufacturer="Venstar",
model=f"{self._client.model}-{self._client.get_type()}",
sw_version=self._client.get_api_ver(),
sw_version="{}.{}".format(*(self._client.get_firmware_ver())),
)

View File

@ -1,7 +1,7 @@
{
"domain": "venstar",
"name": "Venstar",
"codeowners": ["@garbled1"],
"codeowners": ["@garbled1", "@jhollowe"],
"config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/venstar",
"iot_class": "local_polling",

View File

@ -18,7 +18,8 @@ class VenstarColorTouchMock:
"""Initialize the Venstar library."""
self.status = {}
self.model = "COLORTOUCH"
self._api_ver = 5
self._api_ver = 7
self._firmware_ver = tuple(5, 28)
self.name = "TestVenstar"
self._info = {}
self._sensors = {}