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

Remove bulb attribute conditional block #265 - Stage for v1.10.1 #268

Merged
merged 3 commits into from
Jan 29, 2023

Conversation

jasonacox
Copy link
Owner

Removed bulb attribute conditional blocking in BulbDevice set_colour(), set_hsv() and set_colourtemp() as some devices do not correctly report capabilities. Conditional provides debug warning message instead #265

Stage for v1.10.1.

if not 0 <= h <= 1.0:
return error_json(
ERR_RANGE, "set_colour: The value for Hue needs to be between 0 and 1."
ERR_RANGE, "set_hsv: The value for Hue needs to be between 0 and 1."
Copy link
Owner Author

Choose a reason for hiding this comment

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

Fixed function names in ERR responses.

@jasonacox jasonacox merged commit a95f8a9 into master Jan 29, 2023
@jasonacox jasonacox deleted the v1.10.1 branch January 29, 2023 22:30
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.

1 participant