From aec70059f4ce6a5d4aaa9b33891ca68097bb343e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B3=20Lino?= Date: Wed, 21 Jan 2026 17:46:39 +0100 Subject: [PATCH] Fix integration failing to load on recent Home Assistant versions This PR fixes compatibility with recent Home Assistant versions by removing the deprecated `Config` import from `homeassistant.core`. Home Assistant no longer exposes `Config`, causing the integration to fail at import time with: ImportError: cannot import name 'Config' from 'homeassistant.core' The integration now uses `HomeAssistant` / standard config types instead, allowing it to load correctly on current HA releases. No functional changes beyond restoring compatibility. --- custom_components/Chargesplit/__init__.py | 1 - 1 file changed, 1 deletion(-) diff --git a/custom_components/Chargesplit/__init__.py b/custom_components/Chargesplit/__init__.py index eb8cb27..878f591 100644 --- a/custom_components/Chargesplit/__init__.py +++ b/custom_components/Chargesplit/__init__.py @@ -3,7 +3,6 @@ import asyncio from homeassistant.config_entries import ConfigEntry -from homeassistant.core_config import Config from homeassistant.core import HomeAssistant from homeassistant.exceptions import ConfigEntryNotReady from homeassistant.const import Platform