mirror of
https://github.com/home-assistant/core.git
synced 2025-08-06 14:15:12 +02:00
Migrate Speedtest.net to new entity naming style (#75004)
This commit is contained in:
@@ -49,6 +49,7 @@ class SpeedtestSensor(
|
||||
"""Implementation of a speedtest.net sensor."""
|
||||
|
||||
entity_description: SpeedtestSensorEntityDescription
|
||||
_attr_has_entity_name = True
|
||||
_attr_icon = ICON
|
||||
|
||||
def __init__(
|
||||
@@ -59,7 +60,6 @@ class SpeedtestSensor(
|
||||
"""Initialize the sensor."""
|
||||
super().__init__(coordinator)
|
||||
self.entity_description = description
|
||||
self._attr_name = f"{DEFAULT_NAME} {description.name}"
|
||||
self._attr_unique_id = description.key
|
||||
self._state: StateType = None
|
||||
self._attrs = {ATTR_ATTRIBUTION: ATTRIBUTION}
|
||||
|
Reference in New Issue
Block a user