Update minimum Home Assistant version - #1851
Open
hmmbob wants to merge 1 commit into
Open
Conversation
hmmbob
marked this pull request as ready for review
July 31, 2026 11:57
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
Update the declared and enforced minimum Home Assistant version from 2023.2 to 2025.6, and remove version branches that can no longer be reached.
Why 2025.6?
The current
2023.2.0declaration no longer matches the APIs used by the integration:XFan17unconditionally usesFanEntityFeature.TURN_ONandTURN_OFF. Home Assistant introduced those flags in 2024.8.More importantly, the test suite exposes a concrete runtime incompatibility with Home Assistant 2025.5. In that release,
SelectEntity._attr_current_optionis only annotated, without a default.XStartupdoes not set the attribute when a device does not reportstartup, so writing its initial state raises:Home Assistant 2025.6 sets
_attr_current_optiontoNone, and the complete SonoffLAN suite passes without a compatibility patch. Home Assistant 2025.6 also requires Python 3.13.2, which is reflected in the backward-compatibility test.This makes 2025.6 the first Home Assistant release that satisfies the current code and test suite as-is. It is also more than a year old at the time of this change, so adding another shim solely for 2025.5 and older would preserve an already stale compatibility target instead of documenting the integration's real lower bound.
Changes
Validation
test_pow2_energywith theXStartup._attr_current_optionAttributeErrorabove.This PR is intentionally separate from #1850 and does not change concentration-unit compatibility.