From 00d02787f57c6e530b5810ca2a846ed76af06ed3 Mon Sep 17 00:00:00 2001 From: WillCodeForCats <48533968+WillCodeForCats@users.noreply.github.com> Date: Wed, 5 Aug 2026 21:41:37 -0700 Subject: [PATCH] Cast firmware_version as string in devices --- custom_components/tekmar_482/hub.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/custom_components/tekmar_482/hub.py b/custom_components/tekmar_482/hub.py index 6a135cb..a65ab70 100644 --- a/custom_components/tekmar_482/hub.py +++ b/custom_components/tekmar_482/hub.py @@ -707,7 +707,7 @@ async def init_device(self) -> None: # Some static information about this device self._device_type = DEVICE_TYPES[self.tha_device["type"]] self._tha_full_device_name = self.tha_device["entity"] - self.firmware_version = self.tha_device["version"] + self.firmware_version = str(self.tha_device["version"]) self.model = DEVICE_FEATURES[self.tha_device["type"]]["model"] self._device_info = { @@ -1218,7 +1218,7 @@ def __init__(self, address: int, tha_device: [], hub: TekmarHub) -> None: # Some static information about this device self._device_type = DEVICE_TYPES[self.tha_device["type"]] self._tha_full_device_name = self.tha_device["entity"] - self.firmware_version = self.tha_device["version"] + self.firmware_version = str(self.tha_device["version"]) self.model = DEVICE_FEATURES[self.tha_device["type"]]["model"] self._device_info = { @@ -1367,7 +1367,7 @@ def __init__(self, address: int, tha_device: [], hub: TekmarHub) -> None: # Some static information about this device self._device_type = DEVICE_TYPES[self.tha_device["type"]] self._tha_full_device_name = self.tha_device["entity"] - self.firmware_version = self.tha_device["version"] + self.firmware_version = str(self.tha_device["version"]) self.model = DEVICE_FEATURES[self.tha_device["type"]]["model"] self._device_info = {