FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Allow effect presets seen on light strips by rytilahti · Pull Request #440 · python-kasa/python-kasa · GitHub

Repository navigation

Allow effect presets seen on light strips - #440

Merged
rytilahti merged 4 commits into
python-kasa:masterfrom
rytilahti:fix/bulb_presets_optional_colors
Apr 1, 2023
Merged

rytilahti merged 4 commits into
python-kasa:masterfrom
rytilahti:fix/bulb_presets_optional_colors

Conversation

rytilahti commented Mar 16, 2023 •
edited
Loading

Copy link
Copy Markdown
Member

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

Fixes #439

rytilahti added the bug Something isn't working label Mar 16, 2023
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 commented Mar 16, 2023 •
edited
Loading

Copy link
Copy Markdown

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 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 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 merged commit 505b63d into python-kasa:master Apr 1, 2023
rytilahti deleted the fix/bulb_presets_optional_colors branch April 1, 2023 14:16
pillarsdotnet pushed a commit to pillarsdotnet/python-kasa that referenced this pull request Oct 22, 2026
* Make hue, saturation and color_temp optional for smartbulbpresets

* Adjust bulb preset attributes for effect mode

* Don't send None values on save_preset

* Add tests for save_preset payloads
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL