Fix flaky Nina CI test (#84522)
parent
8c70e5aaad
commit
55b46bfa7a
|
@ -303,7 +303,9 @@ async def test_options_flow_entity_removal(hass: HomeAssistant) -> None:
|
|||
with patch(
|
||||
"pynina.baseApi.BaseAPI._makeRequest",
|
||||
wraps=mocked_request_function,
|
||||
):
|
||||
), patch(
|
||||
"homeassistant.components.nina._async_update_listener"
|
||||
) as mock_update_listener:
|
||||
await hass.config_entries.async_setup(config_entry.entry_id)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
|
@ -330,3 +332,4 @@ async def test_options_flow_entity_removal(hass: HomeAssistant) -> None:
|
|||
)
|
||||
|
||||
assert len(entries) == 2
|
||||
assert len(mock_update_listener.mock_calls) == 1
|
||||
|
|
Loading…
Reference in New Issue