From cdcc73a414a9f2e66589c838ebc27baaedb5e728 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Sat, 9 Jul 2022 19:22:23 +0200 Subject: [PATCH] Migrate Stookalert to new entity naming style (#74693) --- homeassistant/components/stookalert/binary_sensor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/stookalert/binary_sensor.py b/homeassistant/components/stookalert/binary_sensor.py index 974635e2efd..70a25c2bfdf 100644 --- a/homeassistant/components/stookalert/binary_sensor.py +++ b/homeassistant/components/stookalert/binary_sensor.py @@ -35,15 +35,15 @@ class StookalertBinarySensor(BinarySensorEntity): _attr_attribution = "Data provided by rivm.nl" _attr_device_class = BinarySensorDeviceClass.SAFETY + _attr_has_entity_name = True def __init__(self, client: stookalert.stookalert, entry: ConfigEntry) -> None: """Initialize a Stookalert device.""" self._client = client - self._attr_name = f"Stookalert {entry.data[CONF_PROVINCE]}" self._attr_unique_id = entry.unique_id self._attr_device_info = DeviceInfo( identifiers={(DOMAIN, f"{entry.entry_id}")}, - name=entry.data[CONF_PROVINCE], + name=f"Stookalert {entry.data[CONF_PROVINCE]}", manufacturer="RIVM", model="Stookalert", entry_type=DeviceEntryType.SERVICE,