Fix implicitly using device name in Yale Smart Living (#96161)

Yale Smart Living device name
This commit is contained in:
G Johansson 2023-07-08 20:03:02 +02:00 committed by GitHub
parent 7f6309c5cb
commit d37ac5ace9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -43,6 +43,7 @@ class YaleAlarmDevice(YaleAlarmEntity, AlarmControlPanelEntity):
AlarmControlPanelEntityFeature.ARM_HOME
| AlarmControlPanelEntityFeature.ARM_AWAY
)
_attr_name = None
def __init__(self, coordinator: YaleDataUpdateCoordinator) -> None:
"""Initialize the Yale Alarm Device."""

View File

@ -40,6 +40,8 @@ async def async_setup_entry(
class YaleDoorlock(YaleEntity, LockEntity):
"""Representation of a Yale doorlock."""
_attr_name = None
def __init__(
self, coordinator: YaleDataUpdateCoordinator, data: dict, code_format: int
) -> None: