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.
Major Changes
This pull request includes several updates to enhance the functionality and compatibility of the Dreo fan integration and its testing framework. The most important changes involve updating the Python version in the CI workflow, expanding fan features, and adding new test cases.
Compatibility and Setup:
.github/workflows/pytest.yaml
to ensure compatibility with the latest Python release.Feature Enhancements:
TURN_ON
andTURN_OFF
incustom_components/dreo/fan.py
.FAN_MODE_STRINGS
dictionary to map mode strings to user-friendly names incustom_components/dreo/pydreo/constant.py
.parse_preset_modes
method to useFAN_MODE_STRINGS
for mode identification incustom_components/dreo/pydreo/pydreofan.py
.Testing Framework:
tests/pydreo/test_pydreofan.py
to verify fan speed and preset modes, and to ensure commands are sent correctly.Dependency Management:
pytest-homeassistant-custom-component
withhomeassistant
inrequirements.test.txt
to streamline dependencies.