-
Notifications
You must be signed in to change notification settings - Fork 84
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
ISSUE: Problem decoding email message: Expected list, got <class 'str'> #1015
Comments
Try replacing the helpers.py in custom_components/mail_and_packages with this file: Then restart HA and see if the errors go away and it starts working correctly. |
Now it doesn't work at all and I get this log dump. Not sure if this is helpful. |
Install the latest beta, then drop in that |
The latest beta isn't working at all for me. Trying to connect to the server it fails to validate the SSL certificate even though I explicitly disabled checking:
|
I pushed an updated version: Please give it a try. |
Still got this:
|
I've pushed another commit for you to try out: Thanks. |
|
Are you trying to parse the email as multipart? Can you use |
It's supposed to be multipart that's the problem. |
What do you mean by "supposed to be multipart"? I thought IMAP could handle both single and multipart emails, with the MIME type determining the structure. Am I missing something? (thanks for your help btw. I'm happy do provide more info if you need it) |
New commit. |
Nice work. No error this time and the amazon sensor rightfully says "0." I'll order something soon and I'll let you know if it updates. Thanks |
It doesn't appear to be picking up new packages but the original error seems to be gone. |
Can you post debug log with sensitive info redacted? |
There aren't any packages out for delivery yet. I'll let you know |
I believe this is the relevant part. If it would help I could send you the HTML content of the email or I can run some code locally to test |
I've done some debugging myself and for some reason this line is evaluating to True causing the |
Your emails for some reason are missing the |
Describe the bug
None of my Amazon packages are properly parsed. With debug logging I get the same error for every message found in the search
Environment (please complete the following information):
Logs
Additional Context
I also have USPS, UPS, and FedEx enabled and all of those work perfectly fine. This appears to be something specific to Amazon.
The text was updated successfully, but these errors were encountered: