From c85b58262006bbd56386d3a3a655d345dfaef011 Mon Sep 17 00:00:00 2001 From: Sanjoy Ghosh Date: Sun, 27 Oct 2024 16:08:28 +0100 Subject: [PATCH] Sensor names have prefix now --- custom_components/dirigera_platform/base_classes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/custom_components/dirigera_platform/base_classes.py b/custom_components/dirigera_platform/base_classes.py index fd26dcf..a355c72 100644 --- a/custom_components/dirigera_platform/base_classes.py +++ b/custom_components/dirigera_platform/base_classes.py @@ -129,9 +129,10 @@ def device_info(self) -> DeviceInfo: @property def name(self): + if self._name is None or len(self._name) == 0: return self._device.name - return self._name + return f"{self._device.name} {self._name}" @property def entity_category(self):