Migrate ReCollect Waste to new entity naming style (#74914)

This commit is contained in:
Aaron Bach 2022-07-10 14:11:02 -06:00 committed by GitHub
parent 4433065438
commit 07444dba2a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,11 +28,11 @@ SENSOR_TYPE_NEXT_PICKUP = "next_pickup"
SENSOR_DESCRIPTIONS = ( SENSOR_DESCRIPTIONS = (
SensorEntityDescription( SensorEntityDescription(
key=SENSOR_TYPE_CURRENT_PICKUP, key=SENSOR_TYPE_CURRENT_PICKUP,
name="Current Pickup", name="Current pickup",
), ),
SensorEntityDescription( SensorEntityDescription(
key=SENSOR_TYPE_NEXT_PICKUP, key=SENSOR_TYPE_NEXT_PICKUP,
name="Next Pickup", name="Next pickup",
), ),
) )
@ -68,6 +68,7 @@ class ReCollectWasteSensor(CoordinatorEntity, SensorEntity):
"""ReCollect Waste Sensor.""" """ReCollect Waste Sensor."""
_attr_device_class = SensorDeviceClass.DATE _attr_device_class = SensorDeviceClass.DATE
_attr_has_entity_name = True
def __init__( def __init__(
self, self,