Sync Integration with 2026.01 version of HAOS#757
Open
reminchev wants to merge 26 commits intowuwentao:masterfrom
Open
Sync Integration with 2026.01 version of HAOS#757reminchev wants to merge 26 commits intowuwentao:masterfrom
reminchev wants to merge 26 commits intowuwentao:masterfrom
Conversation
midea-local==6.5.0
- Updated manifest.json to point to reminchev repository - Removed deprecated MAJOR_VERSION and MINOR_VERSION - Updated all code for HA 2026.1.1 compatibility - Added Bulgarian translation (bg.json) - Added DNS troubleshooting guides - Updated hacs.json with proper configuration
…3 / HA 2026.1.1 Required for Python 3.11+ when using TypeAlias and forward type references. This fixes module import errors in HA 2026.1.1 with Python 3.13.
…files for Python 3.13 compatibility
Collaborator
|
Hi, thank you for the contribution! Please split this PR in multiple PR. |
Owner
|
@reminchev thanks for your PR. |
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.
Description
Updates the integration for compatibility with Home Assistant 2026.1.0 by removing deprecated backwards compatibility flags and version checks that are no longer necessary.
Changes
climate.py_enable_turn_on_off_backwards_compatibilityflag fromMideaClimatebase class (marked for removal after 2025.1)MAJOR_VERSIONandMINOR_VERSIONimports (no longer needed)supported_featuresproperty in all climate classes to directly includeTURN_OFFandTURN_ONfeatures:MideaClimateMideaCFClimateMideaC3ClimateMideaFBClimateif (MAJOR_VERSION, MINOR_VERSION) >= (2024, 2)as these features are now standardfan.py_enable_turn_on_off_backwards_compatibilityflag fromMideaFanbase class (marked for removal in 2024.8~2025.1 window)Motivation
The
_enable_turn_on_off_backwards_compatibilityflags were introduced to maintain compatibility with older Home Assistant versions (pre-2024.2). With Home Assistant 2026.1.0, theTURN_ONandTURN_OFFfeatures for climate and fan entities are now standard, making these compatibility shims unnecessary.Removing these flags and version checks:
Testing
python -m py_compile)Compatibility
Related Issues
Follows the deprecation timeline mentioned in the code comments:
Checklist