mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Update SignalType imports (#114287)
This commit is contained in:
parent
1a46158a1d
commit
1120745d4e
@ -4,7 +4,7 @@ from __future__ import annotations
|
|||||||
|
|
||||||
from typing import TYPE_CHECKING, TypedDict
|
from typing import TYPE_CHECKING, TypedDict
|
||||||
|
|
||||||
from homeassistant.helpers.dispatcher import SignalType
|
from homeassistant.util.signal_type import SignalType
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from .helpers import ChromecastInfo
|
from .helpers import ChromecastInfo
|
||||||
|
@ -27,7 +27,6 @@ from homeassistant.helpers import config_validation as cv, entityfilter
|
|||||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||||
from homeassistant.helpers.discovery import async_load_platform
|
from homeassistant.helpers.discovery import async_load_platform
|
||||||
from homeassistant.helpers.dispatcher import (
|
from homeassistant.helpers.dispatcher import (
|
||||||
SignalType,
|
|
||||||
async_dispatcher_connect,
|
async_dispatcher_connect,
|
||||||
async_dispatcher_send,
|
async_dispatcher_send,
|
||||||
)
|
)
|
||||||
@ -35,6 +34,7 @@ from homeassistant.helpers.event import async_call_later
|
|||||||
from homeassistant.helpers.service import async_register_admin_service
|
from homeassistant.helpers.service import async_register_admin_service
|
||||||
from homeassistant.helpers.typing import ConfigType
|
from homeassistant.helpers.typing import ConfigType
|
||||||
from homeassistant.loader import bind_hass
|
from homeassistant.loader import bind_hass
|
||||||
|
from homeassistant.util.signal_type import SignalType
|
||||||
|
|
||||||
from . import account_link, http_api
|
from . import account_link, http_api
|
||||||
from .client import CloudClient
|
from .client import CloudClient
|
||||||
|
@ -4,7 +4,7 @@ from __future__ import annotations
|
|||||||
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
from homeassistant.helpers.dispatcher import SignalType
|
from homeassistant.util.signal_type import SignalType
|
||||||
|
|
||||||
DOMAIN = "cloud"
|
DOMAIN = "cloud"
|
||||||
DATA_PLATFORMS_SETUP = "cloud_platforms_setup"
|
DATA_PLATFORMS_SETUP = "cloud_platforms_setup"
|
||||||
|
@ -19,7 +19,6 @@ from homeassistant.const import (
|
|||||||
from homeassistant.core import Event, HomeAssistant, ServiceCall, callback
|
from homeassistant.core import Event, HomeAssistant, ServiceCall, callback
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
from homeassistant.helpers.dispatcher import (
|
from homeassistant.helpers.dispatcher import (
|
||||||
SignalType,
|
|
||||||
async_dispatcher_connect,
|
async_dispatcher_connect,
|
||||||
async_dispatcher_send,
|
async_dispatcher_send,
|
||||||
)
|
)
|
||||||
@ -27,6 +26,7 @@ from homeassistant.helpers.entity import Entity
|
|||||||
from homeassistant.helpers.system_info import is_official_image
|
from homeassistant.helpers.system_info import is_official_image
|
||||||
from homeassistant.helpers.typing import ConfigType
|
from homeassistant.helpers.typing import ConfigType
|
||||||
from homeassistant.loader import bind_hass
|
from homeassistant.loader import bind_hass
|
||||||
|
from homeassistant.util.signal_type import SignalType
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from functools import cached_property
|
from functools import cached_property
|
||||||
|
@ -76,7 +76,6 @@ from homeassistant.helpers import (
|
|||||||
translation,
|
translation,
|
||||||
)
|
)
|
||||||
from homeassistant.helpers.dispatcher import (
|
from homeassistant.helpers.dispatcher import (
|
||||||
SignalType,
|
|
||||||
async_dispatcher_connect,
|
async_dispatcher_connect,
|
||||||
async_dispatcher_send,
|
async_dispatcher_send,
|
||||||
)
|
)
|
||||||
@ -95,6 +94,7 @@ from homeassistant.util.json import (
|
|||||||
json_loads_array,
|
json_loads_array,
|
||||||
json_loads_object,
|
json_loads_object,
|
||||||
)
|
)
|
||||||
|
from homeassistant.util.signal_type import SignalType
|
||||||
from homeassistant.util.unit_system import METRIC_SYSTEM
|
from homeassistant.util.unit_system import METRIC_SYSTEM
|
||||||
import homeassistant.util.uuid as uuid_util
|
import homeassistant.util.uuid as uuid_util
|
||||||
import homeassistant.util.yaml.loader as yaml_loader
|
import homeassistant.util.yaml.loader as yaml_loader
|
||||||
|
Loading…
x
Reference in New Issue
Block a user