From 97b5a395db0ccc03cf7731ebf87063153787a341 Mon Sep 17 00:00:00 2001 From: Balbir Boughan Date: Thu, 6 Jan 2022 18:21:02 +0000 Subject: [PATCH] Fix name property for heatmiser Repeaters --- neohubapi/neostat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neohubapi/neostat.py b/neohubapi/neostat.py index 204c50a..e4f16a0 100644 --- a/neohubapi/neostat.py +++ b/neohubapi/neostat.py @@ -76,7 +76,7 @@ class NeoStat(SimpleNamespace): self.__dict__[a] = getattr(self._data_, data_attr, None) # Renamed attrs - self.name = getattr(self._data_, 'ZONE_NAME', None) + self.name = getattr(self._data_, 'ZONE_NAME', getattr(self._data_, 'device', None)) self.floor_limit = getattr(self._data_, 'ZONE_NAME', None) self.target_temperature = getattr(self._data_, 'SET_TEMP', None) self.temperature = getattr(self._data_, 'ACTUAL_TEMP', None)