Fix advantage_air CI failure (#129735)

pull/129715/head^2
epenet 2024-11-03 17:29:33 +01:00 committed by GitHub
parent fbe27749a0
commit 02046fcdb4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -85,7 +85,7 @@ async def test_binary_sensor_async_setup_entry(
dt_util.utcnow() + timedelta(seconds=RELOAD_AFTER_UPDATE_DELAY + 1), dt_util.utcnow() + timedelta(seconds=RELOAD_AFTER_UPDATE_DELAY + 1),
) )
await hass.async_block_till_done(wait_background_tasks=True) await hass.async_block_till_done(wait_background_tasks=True)
assert len(mock_get.mock_calls) == 2 assert len(mock_get.mock_calls) == 3
state = hass.states.get(entity_id) state = hass.states.get(entity_id)
assert state assert state
@ -116,7 +116,7 @@ async def test_binary_sensor_async_setup_entry(
dt_util.utcnow() + timedelta(seconds=RELOAD_AFTER_UPDATE_DELAY + 1), dt_util.utcnow() + timedelta(seconds=RELOAD_AFTER_UPDATE_DELAY + 1),
) )
await hass.async_block_till_done(wait_background_tasks=True) await hass.async_block_till_done(wait_background_tasks=True)
assert len(mock_get.mock_calls) == 2 assert len(mock_get.mock_calls) == 3
state = hass.states.get(entity_id) state = hass.states.get(entity_id)
assert state assert state

View File

@ -140,7 +140,7 @@ async def test_sensor_platform_disabled_entity(
dt_util.utcnow() + timedelta(seconds=RELOAD_AFTER_UPDATE_DELAY + 1), dt_util.utcnow() + timedelta(seconds=RELOAD_AFTER_UPDATE_DELAY + 1),
) )
await hass.async_block_till_done(wait_background_tasks=True) await hass.async_block_till_done(wait_background_tasks=True)
assert len(mock_get.mock_calls) == 2 assert len(mock_get.mock_calls) == 3
state = hass.states.get(entity_id) state = hass.states.get(entity_id)
assert state assert state