From ab35908f915514e0b6a772cc268dd6e87a6002c0 Mon Sep 17 00:00:00 2001 From: Webpatrick Date: Wed, 2 Sep 2026 16:30:05 +0200 Subject: [PATCH] Fix Hassfest manifest and config schema warnings - sort manifest keys in required order - add CONFIG_SCHEMA for config-entry-only integration Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- custom_components/intergas_local/__init__.py | 3 +++ custom_components/intergas_local/manifest.json | 10 +++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/custom_components/intergas_local/__init__.py b/custom_components/intergas_local/__init__.py index b6e06f5..4de2734 100644 --- a/custom_components/intergas_local/__init__.py +++ b/custom_components/intergas_local/__init__.py @@ -5,12 +5,15 @@ from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant +from homeassistant.helpers import config_validation as cv from .const import DOMAIN, DEFAULT_SCAN_INTERVAL, build_resource_url from .coordinator import XtendDataUpdateCoordinator _LOGGER = logging.getLogger(__name__) +CONFIG_SCHEMA = cv.config_entry_only_config_schema(DOMAIN) + async def async_setup(hass: HomeAssistant, config: dict) -> bool: hass.data.setdefault(DOMAIN, {}) diff --git a/custom_components/intergas_local/manifest.json b/custom_components/intergas_local/manifest.json index e4db27b..ddb04c4 100644 --- a/custom_components/intergas_local/manifest.json +++ b/custom_components/intergas_local/manifest.json @@ -1,12 +1,12 @@ { "domain": "intergas_local", "name": "Intergas Local", - "version": "1.0.0", + "codeowners": ["@webpatrick"], + "config_flow": true, + "dependencies": [], "documentation": "https://github.com/webpatrick/intergas_local", + "iot_class": "local_polling", "issue_tracker": "https://github.com/webpatrick/intergas_local/issues", "requirements": [], - "dependencies": [], - "codeowners": ["@webpatrick"], - "config_flow": true, - "iot_class": "local_polling" + "version": "1.0.0" } \ No newline at end of file