1
0
mirror of https://github.com/home-assistant/core.git synced 2026-02-15 07:36:16 +00:00

Fix CI: Test triggers test flakyness (#159885)

This commit is contained in:
Josef Zweck
2025-12-28 19:23:08 +01:00
committed by GitHub
parent b61c6d1edd
commit dd53a82fd5

View File

@@ -548,6 +548,7 @@ async def test_platform_multiple_triggers(
action_method = getattr(action_helper, action_method)
await async_initialize_triggers(hass, config_1, action_method, "test", "", log_cb)
await hass.async_block_till_done()
assert len(action_helper.action_calls) == 1
assert action_helper.action_calls[0][0] == {
"trigger": {
@@ -562,6 +563,7 @@ async def test_platform_multiple_triggers(
action_helper.action_calls.clear()
await async_initialize_triggers(hass, config_2, action_method, "test", "", log_cb)
await hass.async_block_till_done()
assert len(action_helper.action_calls) == 1
assert action_helper.action_calls[0][0] == {
"trigger": {