Fix flaky Nina CI test (#84522)

pull/84525/head
Paulus Schoutsen 2022-12-23 22:36:11 -05:00 committed by GitHub
parent 8c70e5aaad
commit 55b46bfa7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -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