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

Add LightEffect module for smart light strips #918

Merged
merged 2 commits into from
May 15, 2024

Conversation

sdb9696
Copy link
Collaborator

@sdb9696 sdb9696 commented May 14, 2024

This PR implements the light_strip_lighting_effect components for smart devices. Uses a new list of effects captured from a L900 which are similar to the iot effects but include some additional properties and a few extra effects.

Assumes that a device only implements light_strip_lighting_effect or light_effect but not both. If this changes in the future a decision could be made to give one precedence over the other as the common module.

Copy link

codecov bot commented May 14, 2024

Codecov Report

Attention: Patch coverage is 94.11765% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 91.19%. Comparing base (67b5d7d) to head (1d1cb0a).

Files Patch % Lines
kasa/smart/modules/lightstripeffect.py 90.00% 2 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #918      +/-   ##
==========================================
+ Coverage   91.15%   91.19%   +0.03%     
==========================================
  Files          78       80       +2     
  Lines        5156     5222      +66     
  Branches     1254     1265      +11     
==========================================
+ Hits         4700     4762      +62     
- Misses        362      364       +2     
- Partials       94       96       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@rytilahti rytilahti left a comment

Choose a reason for hiding this comment

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

Please add a description to the PR, otherwise this is good to go after handling the comments above.

kasa/cli.py Outdated Show resolved Hide resolved
kasa/smart/modules/lightstripeffect.py Outdated Show resolved Hide resolved
kasa/smart/modules/lightstripeffect.py Outdated Show resolved Hide resolved
kasa/smart/modules/lightstripeffect.py Outdated Show resolved Hide resolved
kasa/smart/modules/lightstripeffect.py Show resolved Hide resolved
kasa/smart/modules/lightstripeffect.py Outdated Show resolved Hide resolved
@sdb9696 sdb9696 merged commit 133a839 into master May 15, 2024
27 checks passed
@sdb9696 sdb9696 deleted the feat/light_strip_effect2 branch May 15, 2024 05:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants