From 20d70337d51c0608d46cdfe17e5d8bd79be33947 Mon Sep 17 00:00:00 2001 From: G Johansson Date: Sat, 16 Jul 2022 17:07:16 +0200 Subject: [PATCH] Migrate Trafikverket Weatherstation to new entity naming style (#75211) --- homeassistant/components/trafikverket_weatherstation/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/trafikverket_weatherstation/sensor.py b/homeassistant/components/trafikverket_weatherstation/sensor.py index c54c9f67388..68c47e9320c 100644 --- a/homeassistant/components/trafikverket_weatherstation/sensor.py +++ b/homeassistant/components/trafikverket_weatherstation/sensor.py @@ -165,6 +165,7 @@ class TrafikverketWeatherStation( entity_description: TrafikverketSensorEntityDescription _attr_attribution = ATTRIBUTION + _attr_has_entity_name = True def __init__( self, @@ -176,7 +177,6 @@ class TrafikverketWeatherStation( """Initialize the sensor.""" super().__init__(coordinator) self.entity_description = description - self._attr_name = f"{sensor_station} {description.name}" self._attr_unique_id = f"{entry_id}_{description.key}" self._attr_device_info = DeviceInfo( entry_type=DeviceEntryType.SERVICE,