ha-inlite

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

commit 3a7d32af9f85d5dcc34a400b514a64a51fcd6934
parent 71c4e44ad1043e0cbea711cf5e98965be0d2278b
Author: Stéphan Kochen <git@stephank.nl>
Date: Thu, 03 Sep 2026 21:49:01 +0200

Define teach-in confirmation field locally

diff --git a/custom_components/inlite/__init__.py b/custom_components/inlite/__init__.py index 34159b51213ea87c435b91726a462bd22dd3f176..91c734b1933ef870467767cbceedf4a655c180f9 100644 --- a/custom_components/inlite/__init__.py +++ b/custom_components/inlite/__init__.py @@ -18,14 +18,14 @@ from homeassistant.components import bluetooth from homeassistant.components.bluetooth import BluetoothScanningMode from homeassistant.components.bluetooth.match import BluetoothCallbackMatcher from homeassistant.config_entries import ConfigEntry -from homeassistant.const import ATTR_DEVICE_ID, CONF_CONFIRM, Platform +from homeassistant.const import ATTR_DEVICE_ID, Platform from homeassistant.core import HomeAssistant, ServiceCall, callback from homeassistant.exceptions import ConfigEntryNotReady, ServiceValidationError from homeassistant.helpers import config_validation as cv from homeassistant.helpers.event import async_track_time_change from homeassistant.helpers.update_coordinator import UpdateFailed -from .const import BLE_LOCAL_NAME, DOMAIN +from .const import BLE_LOCAL_NAME, CONF_CONFIRM, 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 diff --git a/custom_components/inlite/const.py b/custom_components/inlite/const.py index 7011f0c28651be6465703f4248436144c12df0d0..ed54f57318a4dd47e8d6bae2c8e9a18168c24241 100644 --- a/custom_components/inlite/const.py +++ b/custom_components/inlite/const.py @@ -7,6 +7,7 @@ # Config entry data keys CONF_GARDEN_ID = "garden_id" CONF_GARDEN_NAME = "garden_name" +CONF_CONFIRM = "confirm" CONF_NETWORK_KEY = "network_key" CONF_PASSWORD = "password" CONF_TRANSFORMERS = "transformers"