Migrate Roomba to has entity name (#96085)

This commit is contained in:
Joost Lekkerkerker 2023-07-11 20:27:31 +02:00 committed by GitHub
parent fe44827e3c
commit 8b379254c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 36 deletions

View file

@ -28,11 +28,7 @@ class RoombaBinStatus(IRobotEntity, BinarySensorEntity):
"""Class to hold Roomba Sensor basic info."""
ICON = "mdi:delete-variant"
@property
def name(self):
"""Return the name of the sensor."""
return f"{self._name} Bin Full"
_attr_translation_key = "bin_full"
@property
def unique_id(self):