ha-inlite

Home Assistant integration for in-lite
git clone https://git.stephank.nl/ha-inlite
Log | Files | Refs | README | LICENSE | ZIP

commit 71c4e44ad1043e0cbea711cf5e98965be0d2278b
parent d9f888991c543fcf799716a3613ea3052ecb5318
Author: Stéphan Kochen <git@stephank.nl>
Date: Thu, 03 Sep 2026 21:48:00 +0200

Preload config flow in import executor

diff --git a/custom_components/inlite/__init__.py b/custom_components/inlite/__init__.py index 545d5a31929617141b71e3ed44f9bc76ed66297c..34159b51213ea87c435b91726a462bd22dd3f176 100644 --- a/custom_components/inlite/__init__.py +++ b/custom_components/inlite/__init__.py @@ -27,6 +27,10 @@ from homeassistant.helpers.update_coordinator import UpdateFailed from .const import BLE_LOCAL_NAME, DOMAIN from .coordinator import InliteCoordinator +# Preload the config flow with the integration package. Home Assistant imports +# package-level modules in its import executor; loading this later for options +# or setup would otherwise perform disk I/O from the event loop. +from . import config_flow as _config_flow # noqa: F401 _LOGGER = logging.getLogger(__name__)