mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +00:00
Clean up PIhole unneccesary async_block_till_done call (#118166)
leanup unneccesary async_bock_till_done calls
This commit is contained in:
parent
1b191230e4
commit
66119c9d47
@ -128,7 +128,6 @@ async def test_flow_reauth(hass: HomeAssistant) -> None:
|
||||
user_input={CONF_API_KEY: "newkey"},
|
||||
)
|
||||
|
||||
await hass.async_block_till_done()
|
||||
assert result["type"] is FlowResultType.ABORT
|
||||
assert result["reason"] == "reauth_successful"
|
||||
assert entry.data[CONF_API_KEY] == "newkey"
|
||||
|
@ -199,8 +199,6 @@ async def test_disable_service_call(hass: HomeAssistant) -> None:
|
||||
blocking=True,
|
||||
)
|
||||
|
||||
await hass.async_block_till_done()
|
||||
|
||||
mocked_hole.disable.assert_called_with(1)
|
||||
|
||||
|
||||
@ -219,8 +217,6 @@ async def test_unload(hass: HomeAssistant) -> None:
|
||||
assert isinstance(entry.runtime_data, PiHoleData)
|
||||
assert await hass.config_entries.async_unload(entry.entry_id)
|
||||
|
||||
await hass.async_block_till_done()
|
||||
|
||||
assert entry.state is ConfigEntryState.NOT_LOADED
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user