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

Fix smart strip turn on and turn off when no arguments are given in the CLI #639

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Obbay2
Copy link
Contributor

@Obbay2 Obbay2 commented Jan 16, 2024

This doesn't break turning on and off individual plugs which are gotten with get_plug_by_index or get_plug_by_name.

This change is verified working on a real HS300 with hardware version 2.0 and firmware version 1.0.12.
Fixes #637

Copy link

codecov bot commented Jan 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.59%. Comparing base (eadf120) to head (bf2e57d).
Report is 124 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #639   +/-   ##
=======================================
  Coverage   86.59%   86.59%           
=======================================
  Files          38       38           
  Lines        3490     3492    +2     
  Branches      893      895    +2     
=======================================
+ Hits         3022     3024    +2     
  Misses        384      384           
  Partials       84       84           

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

@rytilahti
Copy link
Member

The current implementation works at least on my KP303, and my understanding was that it would work on other multi-socket devices. Doing this would cause extra I/O on those devices, so I'm wondering if this is just an issue with your specific hw/fw. @bdraco, does this work currently on your HS300?

@rytilahti rytilahti added enhancement New feature or request bug Something isn't working and removed enhancement New feature or request labels Mar 16, 2024
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.

TP-Link HS300 Wi-Fi Power-Strip - "Parent On/Off" not functioning.
2 participants