mirror of
https://github.com/home-assistant/core.git
synced 2026-04-18 07:56:03 +01:00
Replace calls to set options in Supervisor with aiohasupervisor (#165872)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
@@ -123,7 +123,6 @@ from .typing import (
|
||||
if TYPE_CHECKING:
|
||||
# Local import to avoid processing recorder and SQLite modules when running a
|
||||
# testcase which does not use the recorder.
|
||||
from homeassistant.auth.models import RefreshToken
|
||||
from homeassistant.components import recorder
|
||||
|
||||
|
||||
@@ -2009,17 +2008,9 @@ async def hassio_stubs(
|
||||
hass_client: ClientSessionGenerator,
|
||||
aioclient_mock: AiohttpClientMocker,
|
||||
supervisor_client: AsyncMock,
|
||||
) -> RefreshToken:
|
||||
) -> None:
|
||||
"""Create mock hassio http client."""
|
||||
with (
|
||||
patch(
|
||||
"homeassistant.components.hassio.HassIO.update_hass_api",
|
||||
return_value={"result": "ok"},
|
||||
) as hass_api,
|
||||
patch(
|
||||
"homeassistant.components.hassio.HassIO.update_hass_config",
|
||||
return_value={"result": "ok"},
|
||||
),
|
||||
patch(
|
||||
"homeassistant.components.hassio.HassIO.get_ingress_panels",
|
||||
return_value={"panels": []},
|
||||
@@ -2030,8 +2021,6 @@ async def hassio_stubs(
|
||||
):
|
||||
await async_setup_component(hass, "hassio", {})
|
||||
|
||||
return hass_api.call_args[0][1]
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def integration_frame_path() -> str:
|
||||
|
||||
Reference in New Issue
Block a user