mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 14:27:07 +00:00
Move to explicit exports in test helpers (#145392)
This commit is contained in:
parent
3d53bdc6c5
commit
b5a3cedacd
@ -28,7 +28,7 @@ from types import FrameType, ModuleType
|
|||||||
from typing import Any, Literal, NoReturn
|
from typing import Any, Literal, NoReturn
|
||||||
from unittest.mock import AsyncMock, Mock, patch
|
from unittest.mock import AsyncMock, Mock, patch
|
||||||
|
|
||||||
from aiohttp.test_utils import unused_port as get_test_instance_port # noqa: F401
|
from aiohttp.test_utils import unused_port as get_test_instance_port
|
||||||
from annotatedyaml import load_yaml_dict, loader as yaml_loader
|
from annotatedyaml import load_yaml_dict, loader as yaml_loader
|
||||||
import attr
|
import attr
|
||||||
import pytest
|
import pytest
|
||||||
@ -44,7 +44,7 @@ from homeassistant.auth import (
|
|||||||
)
|
)
|
||||||
from homeassistant.auth.permissions import system_policies
|
from homeassistant.auth.permissions import system_policies
|
||||||
from homeassistant.components import device_automation, persistent_notification as pn
|
from homeassistant.components import device_automation, persistent_notification as pn
|
||||||
from homeassistant.components.device_automation import ( # noqa: F401
|
from homeassistant.components.device_automation import (
|
||||||
_async_get_device_automation_capabilities as async_get_device_automation_capabilities,
|
_async_get_device_automation_capabilities as async_get_device_automation_capabilities,
|
||||||
)
|
)
|
||||||
from homeassistant.components.logger import (
|
from homeassistant.components.logger import (
|
||||||
@ -121,6 +121,11 @@ from .testing_config.custom_components.test_constant_deprecation import (
|
|||||||
import_deprecated_constant,
|
import_deprecated_constant,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"async_get_device_automation_capabilities",
|
||||||
|
"get_test_instance_port",
|
||||||
|
]
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
INSTANCES = []
|
INSTANCES = []
|
||||||
CLIENT_ID = "https://example.com/app"
|
CLIENT_ID = "https://example.com/app"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user