Fix flaky concord232 polling tests (#179784)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Paulus Schoutsen
2026-08-22 09:24:16 +02:00
committed by GitHub
co-authored by Claude
parent e1a7b8780e
commit e149a59c2d
2 changed files with 4 additions and 4 deletions
@@ -237,7 +237,7 @@ async def test_update_state_armed(
# Trigger update
freezer.tick(10)
async_fire_time_changed(hass)
await hass.async_block_till_done()
await hass.async_block_till_done(wait_background_tasks=True)
state = hass.states.get("alarm_control_panel.test_alarm")
assert state.state == expected_state
@@ -259,7 +259,7 @@ async def test_update_connection_error(
freezer.tick(10)
async_fire_time_changed(hass)
await hass.async_block_till_done()
await hass.async_block_till_done(wait_background_tasks=True)
assert "Unable to connect to" in caplog.text
@@ -153,11 +153,11 @@ async def test_zone_update_refresh(
freezer.tick(datetime.timedelta(seconds=10))
async_fire_time_changed(hass)
await hass.async_block_till_done()
await hass.async_block_till_done(wait_background_tasks=True)
freezer.tick(datetime.timedelta(seconds=10))
async_fire_time_changed(hass)
await hass.async_block_till_done()
await hass.async_block_till_done(wait_background_tasks=True)
state = hass.states.get("binary_sensor.zone_1")
assert state.state == "on"