Repository navigation
Merge master into dev: bring #242 to the pyhive 2.0 beta line - #243
Merged
Merged
Conversation
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 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix: register boost services on Home Assistant 2026.11 (2026.11.0 hotfix)
Update the compatibility workflow to use Home Assistant’s pytest-homeassistant package, whose version matches the HA release, and update resolver outputs and maintenance guidance accordingly. Sync the Hive integration with newer core APIs, including service setup, config-entry lifecycle methods, device registry connections, and config-flow typing and error handling. Document related-repository guidance, the minimum supported HA version
Use the current device list to unload only platforms set up for the entry, avoiding reload warnings while picking up newly reported device types. Mark battery sensors as measurements to enable long-term statistics, and add reload and sensor coverage.
When the refresh token expires and this Home Assistant isn't registered for Hive device login, pyhive raises HiveInvalidDeviceAuthentication. Setup only caught HiveReauthRequired, so the entry failed without offering reauth and users had to delete and re-add the integration. Treat both as ConfigEntryAuthFailed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sync with core 2026.11, restore boost end times and fix reload and reauth
Brings the stable fixes from #242 into dev: - sync with core 2026.11.2 - Home Assistant 2026.11.0 minimum and the move to pytest-homeassistant - Boost ends sensors - the reload, reauth and battery statistics fixes Conflict resolutions: - manifest.json: keep dev's pyhive-integration==2.0.0b5 pin and version. - __init__.py: keep dev's HiveConnectionError retry and HiveUnknownConfiguration reauth; add master's HiveInvalidDeviceAuthentication reauth. - config_flow.py: take master's. - requirements_test.txt: dev's ruff 0.17.4 with master's pytest-homeassistant. - tests/test_init.py: restore the 2.0 error cases. pyhive 2.0 has no getTargetTemperature alias, so sensor.py uses get_target_temperature on dev. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Merges
masterintodevso the pyhive 2.0 beta line gets the stable fixes from #242, while keeping dev's beta changes.Comes in from master (#242)
services.pyre-export and boost service registration, plus the 2026.11 API changes.pytest-homeassistant.HiveInvalidDeviceAuthentication.Kept from dev
pyhive-integration==2.0.0b5and the betaversioninmanifest.json.HiveConnectionErrorretries setup andHiveUnknownConfigurationstarts reauth. They now sit alongside master'sHiveInvalidDeviceAuthentication.ruff==0.17.4.Resolutions
manifest.jsoncategoriesandconnectivity__init__.pyconfig_flow.pyrequirements_test.txtpytest-homeassistant==2026.11.2tests/test_init.pyHiveConnectionErrorandHiveUnknownConfigurationcases, removed on master, are backOne change needed for 2.0
Master's sensor calls
heating.getTargetTemperature, which exists only in pyhive 1.0.x. pyhive 2.0 renamed it toget_target_temperatureand ships no alias. The tests mock the library, so they don't catch this. On dev the call (and its mocks) use the 2.0 name. Adding agetTargetTemperaturealias to pyhive 2.0 would also help.Closes
These were fixed in #242. That PR merged into
master, which isn't the default branch, so GitHub didn't close them. This PR closes them when it merges intodev:Closes #223
Closes #128
Closes #207
Closes #208
Closes #224
Note for the next beta
Dev's
versionis still2026.11.0b1, which is older than the stable2026.11.0. The next beta needs2026.11.1b1or higher for HACS to offer it to beta testers.Test plan
pytest: 94 passed on Home Assistant 2026.11.2 with pyhive-integration 2.0.0b5ruff checkandruff format --checkpass (ruff 0.17.4)use@file.com)🤖 Generated with Claude Code