Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update fan.py #26

Merged
merged 2 commits into from
Jun 9, 2024
Merged

Conversation

gurglingtonic
Copy link

Fix warning:-

SUPPORT_SET_SPEED was used from smartir, this is a deprecated constant.. Use FanEntityFeature.SET_SPEED instead..

SUPPORT_DIRECTION was used from smartir, this is a deprecated constant.. Use FanEntityFeature.DIRECTION instead..

SUPPORT_OSCILLATE was used from smartir, this is a deprecated constant.. Use FanEntityFeature.OSCILLATE instead..

Fix warning:-

SUPPORT_SET_SPEED was used from smartir, this is a deprecated constant.. Use FanEntityFeature.SET_SPEED instead..

SUPPORT_DIRECTION was used from smartir, this is a deprecated constant.. Use FanEntityFeature.DIRECTION instead..

SUPPORT_OSCILLATE was used from smartir, this is a deprecated constant.. Use FanEntityFeature.OSCILLATE instead..
@litinoveweedle
Copy link
Owner

Hello,
thank you for the finding and the PR.

I would prefer to replace old constant names by the new enum FanEntityFeature in the whole code. May I ask you to refactor the PR? Or I can prepare PR myself, I would keep you as contributor in any case. ;-)

Copy link
Author

@gurglingtonic gurglingtonic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update as per request

@litinoveweedle litinoveweedle merged commit 9c57403 into litinoveweedle:master Jun 9, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants