From 4433065438b6d6dff1db0da771b70f9026a49cf0 Mon Sep 17 00:00:00 2001 From: Aaron Bach Date: Sun, 10 Jul 2022 14:09:42 -0600 Subject: [PATCH] Migrate Ridwell to new entity naming style (#74915) --- homeassistant/components/ridwell/__init__.py | 2 ++ homeassistant/components/ridwell/sensor.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/ridwell/__init__.py b/homeassistant/components/ridwell/__init__.py index 6b615719bd2..5f3656a8b5a 100644 --- a/homeassistant/components/ridwell/__init__.py +++ b/homeassistant/components/ridwell/__init__.py @@ -124,6 +124,8 @@ async def async_migrate_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: class RidwellEntity(CoordinatorEntity): """Define a base Ridwell entity.""" + _attr_has_entity_name = True + def __init__( self, coordinator: DataUpdateCoordinator, diff --git a/homeassistant/components/ridwell/sensor.py b/homeassistant/components/ridwell/sensor.py index 44bab16691a..f44cac134d8 100644 --- a/homeassistant/components/ridwell/sensor.py +++ b/homeassistant/components/ridwell/sensor.py @@ -28,7 +28,7 @@ ATTR_QUANTITY = "quantity" SENSOR_DESCRIPTION = SensorEntityDescription( key=SENSOR_TYPE_NEXT_PICKUP, - name="Ridwell Pickup", + name="Ridwell pickup", device_class=SensorDeviceClass.DATE, )