mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 08:17:08 +00:00
Fix flaky Nina CI test (#84522)
This commit is contained in:
parent
8c70e5aaad
commit
55b46bfa7a
@ -303,7 +303,9 @@ async def test_options_flow_entity_removal(hass: HomeAssistant) -> None:
|
|||||||
with patch(
|
with patch(
|
||||||
"pynina.baseApi.BaseAPI._makeRequest",
|
"pynina.baseApi.BaseAPI._makeRequest",
|
||||||
wraps=mocked_request_function,
|
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.config_entries.async_setup(config_entry.entry_id)
|
||||||
await hass.async_block_till_done()
|
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(entries) == 2
|
||||||
|
assert len(mock_update_listener.mock_calls) == 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user