Update changelog for version 0.1.9, enhance Lovelace resource registration, improve frontend registration retries, and update minimum Home Assistant version

This commit is contained in:
techartdev
2026-02-20 16:12:41 +02:00
parent b89ad7528a
commit 612deda8b9
5 changed files with 61 additions and 14 deletions
+7 -3
View File
@@ -163,9 +163,13 @@ async def _async_try_discover_addon(hass: HomeAssistant) -> dict[str, Any] | Non
)
return None
# Warn early if the OpenAI-compatible API is disabled — /v1/models will return
# HTML and the connection probe will fail with a misleading error.
if not addon_options.get("enable_openai_api", False):
# Warn only when Supervisor explicitly reports the option as disabled.
# If the key is missing (older/newer addon schema), do not warn.
enable_openai_api = addon_options.get("enable_openai_api")
if enable_openai_api is None and isinstance(addon_options.get("gateway"), dict):
enable_openai_api = addon_options["gateway"].get("enable_openai_api")
if enable_openai_api is False:
_LOGGER.warning(
"Addon option 'enable_openai_api' is false. "
"The integration requires this to be enabled. "