mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 05:37:44 +00:00
Migrate Ridwell to new entity naming style (#74915)
This commit is contained in:
parent
b070bb8ef0
commit
4433065438
@ -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,
|
||||
|
@ -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,
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user