Reolink add 100% coverage of number platform (#124465)
* Add 100% number test coverage * review comments * fix styling * re-add AsyncMock for chime
This commit is contained in:
parent
4e94ce0cc7
commit
ab064a7f36
6 changed files with 121 additions and 20 deletions
|
@ -471,7 +471,7 @@ async def test_dhcp_ip_update(
|
|||
|
||||
if not last_update_success:
|
||||
# ensure the last_update_succes is False for the device_coordinator.
|
||||
reolink_connect.get_states = AsyncMock(side_effect=ReolinkError("Test error"))
|
||||
reolink_connect.get_states.side_effect = ReolinkError("Test error")
|
||||
freezer.tick(DEVICE_UPDATE_INTERVAL)
|
||||
async_fire_time_changed(hass)
|
||||
await hass.async_block_till_done()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue