-
Notifications
You must be signed in to change notification settings - Fork 261
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
TypeError: argument of type 'NoneType' is not iterable #25
Comments
This should've been fixed in the latest version where conditionals were added for the JSON. Closing for now, feel free to reopen if the issue still occurs. |
I agree that the conditionals should have fixed it, but they don't. The error occurs in the two assignments that reference 'progress'. I even tried modifying them to check for the existence of 'progress' and it didn't help. The only way I can get the messages to stop (and get my Echoes to show up again as media players) is to comment out the two assignments that use 'progress' (media_pos and media_duration). |
Huh, look at that. The progress conditional is for media_length parameter inside the progress parameter and if the progress parameter is non-existent then it will absolutely give you the above error. Reopening and will implement a fix soon |
Should have commented earlier. I agree the checks did not handle the double dictionary reference. I just haven't had a chance to work on this. |
Collecting other instances we need to guard against:
|
@kwdavidson mind testing the fix? I can't recreate this error on my systems. |
Running 0.9.1 and still getting:
|
You're absolutely right. It works now! :) I didn't realise I had so many Alexa devices (all my Sonos devices are duplicated as Sonos is linked with Alexa).. Might a future feature be to allow specifying which devices to use (or ignore) ? |
@mihalski The TTS issue is a known limitation because of the way the media_player works in HA. You can still call tts through the media_player.alexa_tts service. Check the community thread for instructions. |
@alandtse The code in the PR works perfectly for me. Thanks. |
Running 0.9.0. Error is added to the log once per minute.
Hass.io 0.75.3 running on ResinOS 2.3.0+rev1. Supervisor 125.
The text was updated successfully, but these errors were encountered: