Remove un-necessary wait for background tasks in Comelit tests (#142000)

This commit is contained in:
Simone Chemelli 2025-04-01 16:05:46 +02:00 committed by GitHub
parent 7068986c14
commit aaafdee56f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View File

@ -112,7 +112,7 @@ async def test_climate_data_update(
freezer.tick(SCAN_INTERVAL)
async_fire_time_changed(hass)
await hass.async_block_till_done(wait_background_tasks=True)
await hass.async_block_till_done()
assert (state := hass.states.get(ENTITY_ID))
assert state.state == mode
@ -149,7 +149,7 @@ async def test_climate_data_update_bad_data(
freezer.tick(SCAN_INTERVAL)
async_fire_time_changed(hass)
await hass.async_block_till_done(wait_background_tasks=True)
await hass.async_block_till_done()
assert (state := hass.states.get(ENTITY_ID))
assert state.state == HVACMode.HEAT

View File

@ -43,7 +43,7 @@ async def test_coordinator_data_update_fails(
freezer.tick(SCAN_INTERVAL)
async_fire_time_changed(hass)
await hass.async_block_till_done(wait_background_tasks=True)
await hass.async_block_till_done()
assert (state := hass.states.get(entity_id))
assert state.state == STATE_UNAVAILABLE

View File

@ -84,7 +84,7 @@ async def test_sensor_state_unknown(
freezer.tick(SCAN_INTERVAL)
async_fire_time_changed(hass)
await hass.async_block_till_done(wait_background_tasks=True)
await hass.async_block_till_done()
assert (state := hass.states.get(ENTITY_ID))
assert state.state == STATE_UNKNOWN