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

Always include speed in scenes for api V2 #960

Merged
merged 2 commits into from
Nov 27, 2023

Conversation

jamesremuscat
Copy link
Contributor

The Hue v2 API mandates speed in scene objects (even though the palette entry, to which the speed supposedly relates, is optional).

aiohue at the very least has trouble parsing scenes where speed is not specified.

This PR modifies the Scene object to always include speed in its V2 API representation, and pulls out the default value into a constant to use across both constructor and save methods.

@mariusmotea mariusmotea merged commit 322a845 into diyhue:master Nov 27, 2023
1 check passed
@mariusmotea
Copy link
Member

Thanks for the fix.

@jamesremuscat jamesremuscat deleted the fix/speed-required-in-scenes branch November 28, 2023 22:42
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