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

Deprecate device level light, effect and led attributes #916

Merged
merged 2 commits into from
May 15, 2024

Conversation

sdb9696
Copy link
Collaborator

@sdb9696 sdb9696 commented May 14, 2024

Deprecates the attributes at device level for light, light effects, and led. i.e. device.led, device.is_color. Will continue to support consumers using these attributes and emit a warning

Copy link

codecov bot commented May 14, 2024

Codecov Report

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

Project coverage is 91.34%. Comparing base (133a839) to head (1e1d673).

Files Patch % Lines
kasa/device.py 88.88% 1 Missing and 1 partial ⚠️
kasa/iot/modules/light.py 90.90% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #916      +/-   ##
==========================================
+ Coverage   91.19%   91.34%   +0.15%     
==========================================
  Files          80       80              
  Lines        5222     5222              
  Branches     1265     1259       -6     
==========================================
+ Hits         4762     4770       +8     
+ Misses        364      355       -9     
- Partials       96       97       +1     

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

@sdb9696 sdb9696 marked this pull request as ready for review May 14, 2024 15:25
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.

A couple of quick comments, but this looks fine after splitting the PR (deprecation + smart effects) 👍

kasa/device.py Outdated Show resolved Hide resolved
kasa/iot/modules/light.py Show resolved Hide resolved
@sdb9696 sdb9696 changed the title Add LightEffect module for smart light strips Deprecate device level light, effect and led attributes May 14, 2024
@sdb9696 sdb9696 changed the base branch from master to feat/light_strip_effect2 May 14, 2024 18:09
Base automatically changed from feat/light_strip_effect2 to master May 15, 2024 05:16
@sdb9696 sdb9696 requested a review from rytilahti May 15, 2024 08:22
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.

Looks much easier to read and comprehend now, feel free to merge after updating the description 👍

@sdb9696 sdb9696 merged commit a2e8d2c into master May 15, 2024
27 checks passed
@sdb9696 sdb9696 deleted the feat/light_strip_effects branch May 15, 2024 17:49
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.

None yet

2 participants