Migrate Nuki to new entity naming style (#80021)

Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch>
This commit is contained in:
Patrick ZAJDA 2023-01-26 13:50:19 +01:00 committed by GitHub
parent 6ea234ed57
commit 2e70de9dd9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View file

@ -34,6 +34,8 @@ async def async_setup_entry(
class NukiDoorsensorEntity(NukiEntity, BinarySensorEntity):
"""Representation of a Nuki Lock Doorsensor."""
_attr_has_entity_name = True
_attr_name = "Door sensor"
_attr_device_class = BinarySensorDeviceClass.DOOR
@property