From f2e3c7a4756659cba926510de70ee9366b5885d1 Mon Sep 17 00:00:00 2001 From: Neil Sleightholm Date: Wed, 4 Nov 2026 19:53:29 +0000 Subject: [PATCH 1/2] fix: register boost services on Home Assistant 2026.11 Home Assistant 2026.11 moved boost_heating_on, boost_heating_off and boost_hot_water out of the hive climate/water_heater platforms into hive/services.py, registered from core's async_setup. This component replaces the hive domain, so core's async_setup never runs and the services are missing. Add async_setup that calls core's async_setup_services when it exists (no-op on older versions, where the platforms still register them), plus the matching CONFIG_SCHEMA. Co-Authored-By: Claude Opus 5.5 --- custom_components/hive/__init__.py | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/custom_components/hive/__init__.py b/custom_components/hive/__init__.py index 5c2527a..83ec9ef 100755 --- a/custom_components/hive/__init__.py +++ b/custom_components/hive/__init__.py @@ -15,16 +15,39 @@ from homeassistant.const import CONF_SCAN_INTERVAL from homeassistant.core import HomeAssistant from homeassistant.exceptions import ConfigEntryAuthFailed, ConfigEntryNotReady -from homeassistant.helpers import aiohttp_client, device_registry as dr +from homeassistant.helpers import ( + aiohttp_client, + config_validation as cv, + device_registry as dr, +) from homeassistant.helpers.dispatcher import async_dispatcher_send +from homeassistant.helpers.typing import ConfigType from .const import DOMAIN, PLATFORM_LOOKUP, PLATFORMS from .entity import HiveEntity +try: + # Home Assistant 2026.11 moved the boost_* entity services out of the + # climate / water_heater platforms (which this component re-exports) into + # hive/services.py, registered from core's async_setup. This component + # replaces the hive domain, so core's async_setup never runs: call it here. + from homeassistant.components.hive.services import async_setup_services +except ImportError: # Home Assistant < 2026.11: the platforms register them. + async_setup_services = None + _LOGGER = logging.getLogger(__name__) type HiveConfigEntry = ConfigEntry[Hive] +CONFIG_SCHEMA = cv.config_entry_only_config_schema(DOMAIN) + + +async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: + """Set up the Hive integration.""" + if async_setup_services is not None: + async_setup_services(hass) + return True + async def async_setup_entry(hass: HomeAssistant, entry: HiveConfigEntry) -> bool: """Set up Hive from a config entry.""" From a439222258d96273b51877dd16e465b4518e210a Mon Sep 17 00:00:00 2001 From: Neil Sleightholm Date: Sun, 8 Nov 2026 16:00:24 +0000 Subject: [PATCH 2/2] chore: release 2026.11.0 Co-Authored-By: Claude Opus 5.5 --- custom_components/hive/manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/hive/manifest.json b/custom_components/hive/manifest.json index ac3c013..c1c317c 100755 --- a/custom_components/hive/manifest.json +++ b/custom_components/hive/manifest.json @@ -12,5 +12,5 @@ "issue_tracker": "https://github.com/Pyhass/Hive-Custom-Component/issues", "loggers": ["apyhiveapi"], "requirements": ["pyhive-integration==1.0.10"], - "version": "2026.10.1b2" + "version": "2026.11.0" }