-
-
Notifications
You must be signed in to change notification settings - Fork 223
Divide by zero when HS300 powerstrip is discovered #292
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
Comments
Could you try and see if #149 fixes this problem? |
@rytilahti thanks for answering so quickly. It got further but threw another error:
|
I am also getting that last error but I do not have an HS300:
interestingly when I target the device individually it works fine:
|
The |
Any progress on this? I'm also experiencing this problem with my HS300. Here are my logs. Hopefully they're helpful, otherwise sorry about adding an unnecessary comment. Without targeting:
Curiously, the "Device state" incorrectly shows 'OFF' when discovering without a target. Here it is working correctly when directly targeting the HS300:
|
Did you already try it with the current master? The problem is that the device is not yet updated (on that first case, see |
Yes, my understanding is that I'm on the current master:
|
Since I last posted, version 0.4.2 has come out. I've updated to that version and the issue appears to be resolved! 👍 |
This release fixes an issue where the bulb state on led strips was not restored properly when turned back on. [Full Changelog](python-kasa/python-kasa@0.4.2...0.4.3) **Fixed bugs:** - Divide by zero when HS300 powerstrip is discovered [\python-kasa#292](python-kasa#292) - Ensure bulb state is restored when turning back on [\python-kasa#330](python-kasa#330) (@bdraco) **Closed issues:** - KL420L5 controls [\python-kasa#327](python-kasa#327) **Merged pull requests:** - Update pre-commit hooks to fix black in CI [\python-kasa#331](python-kasa#331) (@rytilahti) - Fix test\_deprecated\_type stalling [\python-kasa#325](python-kasa#325) (@bdraco)
This release fixes an issue where the bulb state on led strips was not restored properly when turned back on. [Full Changelog](0.4.2...0.4.3) **Fixed bugs:** - Divide by zero when HS300 powerstrip is discovered [\#292](#292) - Ensure bulb state is restored when turning back on [\#330](#330) (@bdraco) **Closed issues:** - KL420L5 controls [\#327](#327) **Merged pull requests:** - Update pre-commit hooks to fix black in CI [\#331](#331) (@rytilahti) - Fix test\_deprecated\_type stalling [\#325](#325) (@bdraco)
kasa discover
throws an error when discovering an HS300 smart strip however ifkasa --host <ip address of HS300 smart strip>
is run, no error is throw.For debug, added
print(self)
to line 223 ofsmartstrip.py
and found thatself.children
is empty when the device is discovered:but it is populated when an IP is specified:
Here is the start and end of the traceback:
The text was updated successfully, but these errors were encountered: