Apply consistent naming to ZHA cluster handler implementations (#108851)
* Apply consistent naming to ZHA cluster handler implentations * remove import alias * remove if statement around assert in test
This commit is contained in:
parent
eb85f469e9
commit
3f31a76692
14 changed files with 450 additions and 443 deletions
|
@ -28,7 +28,7 @@ from .core import discovery
|
|||
from .core.cluster_handlers.security import (
|
||||
SIGNAL_ALARM_TRIGGERED,
|
||||
SIGNAL_ARMED_STATE_CHANGED,
|
||||
IasAce as AceClusterHandler,
|
||||
IasAceClusterHandler,
|
||||
)
|
||||
from .core.const import (
|
||||
CLUSTER_HANDLER_IAS_ACE,
|
||||
|
@ -96,7 +96,7 @@ class ZHAAlarmControlPanel(ZhaEntity, AlarmControlPanelEntity):
|
|||
"""Initialize the ZHA alarm control device."""
|
||||
super().__init__(unique_id, zha_device, cluster_handlers, **kwargs)
|
||||
cfg_entry = zha_device.gateway.config_entry
|
||||
self._cluster_handler: AceClusterHandler = cluster_handlers[0]
|
||||
self._cluster_handler: IasAceClusterHandler = cluster_handlers[0]
|
||||
self._cluster_handler.panel_code = async_get_zha_config_value(
|
||||
cfg_entry, ZHA_ALARM_OPTIONS, CONF_ALARM_MASTER_CODE, "1234"
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue