Clean up PIhole unneccesary async_block_till_done call (#118166)

leanup unneccesary async_bock_till_done calls
This commit is contained in:
Michael 2024-05-26 12:40:22 +02:00 committed by GitHub
parent 1b191230e4
commit 66119c9d47
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 5 deletions

View File

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

View File

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