Fix Alarm control panel not require code in several integrations (#118961)
parent
a5959cfb83
commit
2a4f7439a2
|
@ -43,6 +43,7 @@ class AgentBaseStation(AlarmControlPanelEntity):
|
|||
| AlarmControlPanelEntityFeature.ARM_AWAY
|
||||
| AlarmControlPanelEntityFeature.ARM_NIGHT
|
||||
)
|
||||
_attr_code_arm_required = False
|
||||
_attr_has_entity_name = True
|
||||
_attr_name = None
|
||||
|
||||
|
|
|
@ -46,6 +46,7 @@ class BlinkSyncModuleHA(
|
|||
"""Representation of a Blink Alarm Control Panel."""
|
||||
|
||||
_attr_supported_features = AlarmControlPanelEntityFeature.ARM_AWAY
|
||||
_attr_code_arm_required = False
|
||||
_attr_has_entity_name = True
|
||||
_attr_name = None
|
||||
|
||||
|
|
|
@ -67,6 +67,7 @@ class EgardiaAlarm(AlarmControlPanelEntity):
|
|||
"""Representation of a Egardia alarm."""
|
||||
|
||||
_attr_state: str | None
|
||||
_attr_code_arm_required = False
|
||||
_attr_supported_features = (
|
||||
AlarmControlPanelEntityFeature.ARM_HOME
|
||||
| AlarmControlPanelEntityFeature.ARM_AWAY
|
||||
|
|
|
@ -51,6 +51,7 @@ class HiveAlarmControlPanelEntity(HiveEntity, AlarmControlPanelEntity):
|
|||
| AlarmControlPanelEntityFeature.ARM_AWAY
|
||||
| AlarmControlPanelEntityFeature.TRIGGER
|
||||
)
|
||||
_attr_code_arm_required = False
|
||||
|
||||
async def async_alarm_disarm(self, code: str | None = None) -> None:
|
||||
"""Send disarm command."""
|
||||
|
|
|
@ -37,6 +37,7 @@ class IAlarmPanel(
|
|||
AlarmControlPanelEntityFeature.ARM_HOME
|
||||
| AlarmControlPanelEntityFeature.ARM_AWAY
|
||||
)
|
||||
_attr_code_arm_required = False
|
||||
|
||||
def __init__(self, coordinator: IAlarmDataUpdateCoordinator) -> None:
|
||||
"""Create the entity with a DataUpdateCoordinator."""
|
||||
|
|
|
@ -48,6 +48,7 @@ class LupusecAlarm(LupusecDevice, AlarmControlPanelEntity):
|
|||
AlarmControlPanelEntityFeature.ARM_HOME
|
||||
| AlarmControlPanelEntityFeature.ARM_AWAY
|
||||
)
|
||||
_attr_code_arm_required = False
|
||||
|
||||
def __init__(
|
||||
self, data: lupupy.Lupusec, device: lupupy.devices.LupusecAlarm, entry_id: str
|
||||
|
|
|
@ -100,6 +100,7 @@ class NX584Alarm(AlarmControlPanelEntity):
|
|||
AlarmControlPanelEntityFeature.ARM_HOME
|
||||
| AlarmControlPanelEntityFeature.ARM_AWAY
|
||||
)
|
||||
_attr_code_arm_required = False
|
||||
|
||||
def __init__(self, name: str, alarm_client: client.Client, url: str) -> None:
|
||||
"""Init the nx584 alarm panel."""
|
||||
|
|
|
@ -240,6 +240,7 @@ class OverkizAlarmControlPanel(OverkizDescriptiveEntity, AlarmControlPanelEntity
|
|||
"""Representation of an Overkiz Alarm Control Panel."""
|
||||
|
||||
entity_description: OverkizAlarmDescription
|
||||
_attr_code_arm_required = False
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
|
|
@ -55,6 +55,7 @@ class MinutPointAlarmControl(AlarmControlPanelEntity):
|
|||
"""The platform class required by Home Assistant."""
|
||||
|
||||
_attr_supported_features = AlarmControlPanelEntityFeature.ARM_AWAY
|
||||
_attr_code_arm_required = False
|
||||
|
||||
def __init__(self, point_client: MinutPointClient, home_id: str) -> None:
|
||||
"""Initialize the entity."""
|
||||
|
|
|
@ -62,6 +62,7 @@ class SpcAlarm(AlarmControlPanelEntity):
|
|||
| AlarmControlPanelEntityFeature.ARM_AWAY
|
||||
| AlarmControlPanelEntityFeature.ARM_NIGHT
|
||||
)
|
||||
_attr_code_arm_required = False
|
||||
|
||||
def __init__(self, area: Area, api: SpcWebGateway) -> None:
|
||||
"""Initialize the SPC alarm panel."""
|
||||
|
|
|
@ -88,6 +88,7 @@ class TuyaAlarmEntity(TuyaEntity, AlarmControlPanelEntity):
|
|||
"""Tuya Alarm Entity."""
|
||||
|
||||
_attr_name = None
|
||||
_attr_code_arm_required = False
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
|
|
@ -54,6 +54,7 @@ class XiaomiGatewayAlarm(AlarmControlPanelEntity):
|
|||
|
||||
_attr_icon = "mdi:shield-home"
|
||||
_attr_supported_features = AlarmControlPanelEntityFeature.ARM_AWAY
|
||||
_attr_code_arm_required = False
|
||||
|
||||
def __init__(
|
||||
self, gateway_device, gateway_name, model, mac_address, gateway_device_id
|
||||
|
|
Loading…
Reference in New Issue