Skip to content

Commit

Permalink
remove 'name'
Browse files Browse the repository at this point in the history
  • Loading branch information
jontofront authored Dec 20, 2023
1 parent daa62d6 commit d2aadd5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions custom_components/econet300/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""
Expand Down

0 comments on commit d2aadd5

Please sign in to comment.