@@ -100,49 +100,70 @@ def alarm_state(self) -> AlarmControlPanelState | None:
100100 async def async_alarm_disarm (self , code : str | None = None ) -> None :
101101 """Send disarm command."""
102102 self ._client .alarm_control_panel_command (
103- self ._key , AlarmControlPanelCommand .DISARM , code
103+ self ._key ,
104+ AlarmControlPanelCommand .DISARM ,
105+ code ,
106+ device_id = self ._static_info .device_id ,
104107 )
105108
106109 @convert_api_error_ha_error
107110 async def async_alarm_arm_home (self , code : str | None = None ) -> None :
108111 """Send arm home command."""
109112 self ._client .alarm_control_panel_command (
110- self ._key , AlarmControlPanelCommand .ARM_HOME , code
113+ self ._key ,
114+ AlarmControlPanelCommand .ARM_HOME ,
115+ code ,
116+ device_id = self ._static_info .device_id ,
111117 )
112118
113119 @convert_api_error_ha_error
114120 async def async_alarm_arm_away (self , code : str | None = None ) -> None :
115121 """Send arm away command."""
116122 self ._client .alarm_control_panel_command (
117- self ._key , AlarmControlPanelCommand .ARM_AWAY , code
123+ self ._key ,
124+ AlarmControlPanelCommand .ARM_AWAY ,
125+ code ,
126+ device_id = self ._static_info .device_id ,
118127 )
119128
120129 @convert_api_error_ha_error
121130 async def async_alarm_arm_night (self , code : str | None = None ) -> None :
122131 """Send arm away command."""
123132 self ._client .alarm_control_panel_command (
124- self ._key , AlarmControlPanelCommand .ARM_NIGHT , code
133+ self ._key ,
134+ AlarmControlPanelCommand .ARM_NIGHT ,
135+ code ,
136+ device_id = self ._static_info .device_id ,
125137 )
126138
127139 @convert_api_error_ha_error
128140 async def async_alarm_arm_custom_bypass (self , code : str | None = None ) -> None :
129141 """Send arm away command."""
130142 self ._client .alarm_control_panel_command (
131- self ._key , AlarmControlPanelCommand .ARM_CUSTOM_BYPASS , code
143+ self ._key ,
144+ AlarmControlPanelCommand .ARM_CUSTOM_BYPASS ,
145+ code ,
146+ device_id = self ._static_info .device_id ,
132147 )
133148
134149 @convert_api_error_ha_error
135150 async def async_alarm_arm_vacation (self , code : str | None = None ) -> None :
136151 """Send arm away command."""
137152 self ._client .alarm_control_panel_command (
138- self ._key , AlarmControlPanelCommand .ARM_VACATION , code
153+ self ._key ,
154+ AlarmControlPanelCommand .ARM_VACATION ,
155+ code ,
156+ device_id = self ._static_info .device_id ,
139157 )
140158
141159 @convert_api_error_ha_error
142160 async def async_alarm_trigger (self , code : str | None = None ) -> None :
143161 """Send alarm trigger command."""
144162 self ._client .alarm_control_panel_command (
145- self ._key , AlarmControlPanelCommand .TRIGGER , code
163+ self ._key ,
164+ AlarmControlPanelCommand .TRIGGER ,
165+ code ,
166+ device_id = self ._static_info .device_id ,
146167 )
147168
148169
0 commit comments