mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Perform re-login after Fritzbox has rebooted (#64709)
This commit is contained in:
@@ -174,12 +174,12 @@ async def test_update_error(hass: HomeAssistant, fritz: Mock):
|
||||
assert not await setup_config_entry(
|
||||
hass, MOCK_CONFIG[FB_DOMAIN][CONF_DEVICES][0], ENTITY_ID, device, fritz
|
||||
)
|
||||
assert fritz().update_devices.call_count == 1
|
||||
assert fritz().login.call_count == 1
|
||||
assert fritz().update_devices.call_count == 2
|
||||
assert fritz().login.call_count == 2
|
||||
|
||||
next_update = dt_util.utcnow() + timedelta(seconds=200)
|
||||
async_fire_time_changed(hass, next_update)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
assert fritz().update_devices.call_count == 2
|
||||
assert fritz().login.call_count == 2
|
||||
assert fritz().update_devices.call_count == 4
|
||||
assert fritz().login.call_count == 4
|
||||
|
||||
Reference in New Issue
Block a user