Use "arming" state during transition in manual alarm panel (#32950)
* Manual Alarm Control Panel: use proper "Arming" state * Update previous and next attributes * add CONF_ARMING_TIME * Split up arming and pending time, pending_time --> arming_time * update tests * fix issort * fix issort * fix demo platform * fix alarm test * remove arming_time from the triggered state * Match previous default "delay_time" * fix tests * fix arming state when triggering * fix arming _arming_time_by_state for Triggering state * change to not in list * Update homeassistant/components/manual/alarm_control_panel.py Co-Authored-By: Martin Hjelmare <marhje52@gmail.com> * async_update_ha_state -> async_write_ha_state * black formatting * add Callback Co-Authored-By: Martin Hjelmare <marhje52@gmail.com> * import callback * update device triggers alarm_control_panel * Update test_device_trigger.py * Update device_trigger.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
1 parent
e9c5f3e74a
commit
7bfc1d2840
6 files changed
+171
-131
No files matched your search
@@ -69,6 +69,13 @@ async def test_get_triggers(hass, device_reg, entity_reg):
|
||||
"device_id": device_entry.id,
|
||||
"entity_id": f"{DOMAIN}.test_5678",
|
||||
},
|
||||
{
|
||||
"platform": "device",
|
||||
"domain": DOMAIN,
|
||||
"type": "arming",
|
||||
"device_id": device_entry.id,
|
||||
"entity_id": f"{DOMAIN}.test_5678",
|
||||
},
|
||||
{
|
||||
"platform": "device",
|
||||
"domain": DOMAIN,
|
||||
|
||||
Reference in new issue
Block a user