Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Allow effect presets seen on light strips#440

Merged
rytilahti merged 4 commits into
python-kasa:masterpython-kasa/python-kasa:masterfrom
rytilahti:fix/bulb_presets_optional_colorsrytilahti/python-kasa:fix/bulb_presets_optional_colorsCopy head branch name to clipboard
Apr 1, 2023
Merged

Allow effect presets seen on light strips#440
rytilahti merged 4 commits into
python-kasa:masterpython-kasa/python-kasa:masterfrom
rytilahti:fix/bulb_presets_optional_colorsrytilahti/python-kasa:fix/bulb_presets_optional_colorsCopy head branch name to clipboard

Conversation

@rytilahti
Copy link
Copy Markdown
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
Copy Markdown

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.