-
Notifications
You must be signed in to change notification settings - Fork 13
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
AssertionError: assert not self._pending_command_event.is_set() #98
Comments
got a couple more tracebacks
|
@imbaczek Thanks for reporting! Super strange. Would you be able to turn on debugging for the integration in HA and leave it until the issue occurs again and then post all of those logs here? I'd like to see the sequence leading up to this condition - very strange. |
Yup, managed to grab some:
The worst part is after this happens it's broken until restart 😥 |
Thank you! I've been able to reproduce the assertion error under the following scenario:
I'd expect to see a timeout error somewhere in your logs though. Is it possible that happened earlier in what you sent? |
I don't see any errors in the logs before that. Maybe it's a generic event-arrived-out-of-order or duplicated event or something like that issue...? Just guessing. This this the log from the whole session playback session:
|
Thanks for the additional logs. It's possible that the device is sending a duplicate response, though I've never seen that myself. Events wouldn't affect this (those can/are expected to come in at any time, even while a command is in-process). #100 addresses the issue scenario I described above. I believe it will also fix your scenario too (however it's occurring) as it will now discard (and log) a command response received out of band. |
This should be fixed in HA 2025.02.02 coming out this Friday 2/24/2025. Please let me know if it solves it, otherwise open a new issue (as there will be new/better logging for what's going on). Thank you! |
Rest assured will test asap! |
Looks like 2025.02.02 came early! The updated library shipped with that, so give it a shot! |
Worked fine for the past 24h. Thanks again! |
Describe the bug
Home Assistant 2025.2 upgraded pyheos and
AssertionError: assert not self._pending_command_event.is_set()
started happening (traceback below)To Reproduce
It doesn't happen immediately. The system works for a while triggering playing multiple times before breaking; when it breaks, the player doesn't respond to commands (in HA) anymore AFAICT. The heos app works fine.
Expected behavior
No exceptions happen
Environment (please complete the following information):
Logs
n/a
Traceback (if applicable)
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: