mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Pre import mobile app platforms to avoid having to wait on them (#113966)
This commit is contained in:
parent
b2cab70cc0
commit
5b9f40b0f0
@ -19,7 +19,16 @@ from homeassistant.helpers import (
|
|||||||
from homeassistant.helpers.storage import Store
|
from homeassistant.helpers.storage import Store
|
||||||
from homeassistant.helpers.typing import ConfigType
|
from homeassistant.helpers.typing import ConfigType
|
||||||
|
|
||||||
from . import websocket_api
|
# Pre-import the platforms so they get loaded when the integration
|
||||||
|
# is imported as they are almost always going to be loaded and its
|
||||||
|
# cheaper to import them all at once.
|
||||||
|
from . import ( # noqa: F401
|
||||||
|
binary_sensor as binary_sensor_pre_import,
|
||||||
|
device_tracker as device_tracker_pre_import,
|
||||||
|
notify as notify_pre_import,
|
||||||
|
sensor as sensor_pre_import,
|
||||||
|
websocket_api,
|
||||||
|
)
|
||||||
from .const import (
|
from .const import (
|
||||||
ATTR_DEVICE_NAME,
|
ATTR_DEVICE_NAME,
|
||||||
ATTR_MANUFACTURER,
|
ATTR_MANUFACTURER,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user