Skip to content

Allow effect presets seen on light strips #440

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

Merged

Conversation

rytilahti
Copy link
Member

@rytilahti rytilahti commented Mar 16, 2023

The payloads differ on light strips depending on whether the preset is for an effect or for regular bulb settings.

Fixes #439

@rytilahti rytilahti added the bug Something isn't working label Mar 16, 2023
@rytilahti rytilahti changed the title Make hue, saturation and color_temp optional for smartbulbpresets Make hue, saturation and color_temp optional for SmartBulbPresets Mar 16, 2023
@codecov-commenter
Copy link

codecov-commenter commented Mar 16, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (6be2f38) 79.80% compared to head (d23394c) 79.81%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #440   +/-   ##
=======================================
  Coverage   79.80%   79.81%           
=======================================
  Files          25       25           
  Lines        1892     1897    +5     
  Branches      231      231           
=======================================
+ Hits         1510     1514    +4     
- Misses        342      343    +1     
  Partials       40       40           
Impacted Files Coverage Δ
kasa/smartbulb.py 92.38% <100.00%> (+0.11%) ⬆️

... and 1 file with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@rytilahti rytilahti changed the title Make hue, saturation and color_temp optional for SmartBulbPresets Adapt SmartBulbPreset to allow effect-based presets seen on light strips Mar 30, 2023
Just to avoid potential problems if devices do not accept extra keys.
@rytilahti rytilahti changed the title Adapt SmartBulbPreset to allow effect-based presets seen on light strips Allow effect presets seen on light strips Apr 1, 2023
@rytilahti rytilahti merged commit 505b63d into python-kasa:master Apr 1, 2023
@rytilahti rytilahti deleted the fix/bulb_presets_optional_colors branch April 1, 2023 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issue printing device in on_discovered: pydantic.error_wrappers.ValidationError: 3 validation errors for SmartBulbPreset
2 participants