-
-
Notifications
You must be signed in to change notification settings - Fork 221
H100 - Raised error: not enough values to unpack (expected 2, got 1) #1499
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
Looks like the device is not reporting its build version as part of the firmware version field:
which causes the crash as the code is expecting the version string to contain an empty space. Relevant information from the log:
It would be great if you could create a fixture file (https://python-kasa.readthedocs.io/en/stable/contribute.html#contributing-fixture-files) to this device and upload it, so we can add a test & create a fix for this. This can be done on any device that runs python, so no need to do it inside a docker container. |
Unfortunately attempting to create a fixture results in the same error occurring |
You could try with #1500 to see if that helps. If you have github client installed, |
Thank you for fixing that, I've attached the fixture. |
Thanks for reporting and for the fixture, this should be fixed in the next release! |
## [0.10.2](https://github.com/python-kasa/python-kasa/tree/0.10.2) (2025-02-12) [Full Changelog](0.10.1...0.10.2) **Release summary:** - Bugfix for [#1499](#1499). - Support for L530B and C110 devices. **Fixed bugs:** - H100 - Raised error: not enough values to unpack \(expected 2, got 1\) [\#1499](#1499) - Do not crash on missing build number in fw version [\#1500](#1500) (@rytilahti) **Added support for devices:** - Add C110\(EU\) 2.0 1.4.3 fixture [\#1503](#1503) (@sdb9696) - Add L530B\(EU\) 3.0 1.1.9 fixture [\#1502](#1502) (@sdb9696) **Project maintenance:** - Add fixtures for new versions of H100, P110, and T100 devices [\#1501](#1501) (@LXGaming) - Add L530E\(TW\) 2.0 1.1.1 fixture [\#1497](#1497) (@bluehomewu)
Hello,
I discovered in Home Assistant that my T310 (connected via H100) was reported as unavailable and upon investigating I found that python-kasa was throwing the attached error.
I ran the following command from inside the Home Assistant v2025.2.1 docker container
kasa --username <username> --password <password> --host <host> --debug &> dump.txt
.python-kasa-v0.10.1-dump.txt
The text was updated successfully, but these errors were encountered: