Migrate Ridwell to new entity naming style (#74915)

This commit is contained in:
Aaron Bach 2022-07-10 14:09:42 -06:00 committed by GitHub
parent b070bb8ef0
commit 4433065438
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -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,

View File

@ -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,
)