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

This commit is contained in:
Franck Nijhof
2023-07-03 17:38:54 +02:00
committed by GitHub
parent 3fa1e12152
commit 430a1bcb3d
2 changed files with 2 additions and 0 deletions

View File

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

View File

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