From d2aadd53d7a79c9e732d56d6c1ab3b0677c9b3e8 Mon Sep 17 00:00:00 2001 From: jontofront <37038426+jontofront@users.noreply.github.com> Date: Wed, 20 Dec 2023 20:25:30 +0000 Subject: [PATCH] remove 'name' --- custom_components/econet300/sensor.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/custom_components/econet300/sensor.py b/custom_components/econet300/sensor.py index 8afc3f3..56e7cba 100644 --- a/custom_components/econet300/sensor.py +++ b/custom_components/econet300/sensor.py @@ -39,10 +39,11 @@ class EconetSensorEntityDescription(SensorEntityDescription): class EconetSensor(SensorEntity): """Econet Sensor""" - def __init__(self, entity_description, name, unique_id): - super().__init__(name=name, unique_id=unique_id) + def __init__(self, entity_description, unique_id): + super().__init__(name=None, unique_id=unique_id) self.entity_description = entity_description self._attr_native_value = None + _LOGGER.debug("EconetSensor initialized with name: %s, unique_id: %s", self.name, self.unique_id) def _sync_state(self, value): """Sync state"""