Add transition support to scenes, cleanup blocking parameter (#34434)
This commit is contained in:
1 parent
19be31d13a
commit
bc5a2da7b7
66 files changed
+547
-229
No files matched your search
@@ -70,8 +70,7 @@ async def test_reproducing_states(hass, caplog):
|
||||
State("alarm_control_panel.entity_armed_night", STATE_ALARM_ARMED_NIGHT),
|
||||
State("alarm_control_panel.entity_disarmed", STATE_ALARM_DISARMED),
|
||||
State("alarm_control_panel.entity_triggered", STATE_ALARM_TRIGGERED),
|
||||
],
|
||||
blocking=True,
|
||||
]
|
||||
)
|
||||
|
||||
assert len(arm_away_calls) == 0
|
||||
@@ -83,7 +82,7 @@ async def test_reproducing_states(hass, caplog):
|
||||
|
||||
# Test invalid state is handled
|
||||
await hass.helpers.state.async_reproduce_state(
|
||||
[State("alarm_control_panel.entity_triggered", "not_supported")], blocking=True
|
||||
[State("alarm_control_panel.entity_triggered", "not_supported")]
|
||||
)
|
||||
|
||||
assert "not_supported" in caplog.text
|
||||
@@ -109,8 +108,7 @@ async def test_reproducing_states(hass, caplog):
|
||||
State("alarm_control_panel.entity_triggered", STATE_ALARM_DISARMED),
|
||||
# Should not raise
|
||||
State("alarm_control_panel.non_existing", "on"),
|
||||
],
|
||||
blocking=True,
|
||||
]
|
||||
)
|
||||
|
||||
assert len(arm_away_calls) == 1
|
||||
|
||||
Reference in new issue
Block a user