Fix implicit use of device name in Verisure (#95781)

pull/95784/head
Franck Nijhof 2023-07-03 17:38:54 +02:00 committed by GitHub
parent 3fa1e12152
commit 430a1bcb3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -35,6 +35,7 @@ class VerisureAlarm(
_attr_code_format = CodeFormat.NUMBER
_attr_has_entity_name = True
_attr_name = None
_attr_supported_features = (
AlarmControlPanelEntityFeature.ARM_HOME
| AlarmControlPanelEntityFeature.ARM_AWAY

View File

@ -32,6 +32,7 @@ class VerisureSmartplug(CoordinatorEntity[VerisureDataUpdateCoordinator], Switch
"""Representation of a Verisure smartplug."""
_attr_has_entity_name = True
_attr_name = None
def __init__(
self, coordinator: VerisureDataUpdateCoordinator, serial_number: str