moralmunky / Home-Assistant-Mail-And-Packages

Home Assistant integration providing day of package counts and USPS informed delivery images.
MIT License
581 stars 73 forks source link

ISSUE: Configuring multiple carriers causes integration to not initialize #934

Closed Kai-Wulf closed 3 days ago

Kai-Wulf commented 5 days ago

Describe the bug As of 1 July, integration began reporting errors with some of the carriers configured. Unloaded all carriers, and removed all entities. Began adding carriers back one at a time. Can successfully add USPS and UPS and the integration will start. If I try adding Amazon, FedEx, or DHL, the integration will not start

All shipment notifications end up in one email account that has aliases for each service. All mail goes to the default INBOX

Environment (please complete the following information):

Logs Logger: custom_components.mail_and_packages.config_flow Source: custom_components/mail_and_packages/config_flow.py:145 integration: Mail and Packages (documentation, issues) First occurred: 8:16:28 PM (1 occurrences) Last logged: 8:16:28 PM

Error creating folder array trying period

firstof9 commented 5 days ago

Check your home-assistant.log for proper error traceback please.

Kai-Wulf commented 4 days ago

2024-07-03 14:04:59.436 ERROR (MainThread) [custom_components.mail_and_packages.config_flow] Error creating folder array trying period

Thats the only error showing up for mail and packages when I try to add additional carriers

Kai-Wulf commented 4 days ago

2024-07-03 14:09:32.335 ERROR (MainThread) [custom_components.mail_and_packages.config_flow] Error creating folder array trying period 2024-07-03 14:09:42.355 DEBUG (MainThread) [custom_components.mail_and_packages] Attempting to reload sensors from the mail_and_packages integration 2024-07-03 14:09:42.355 DEBUG (MainThread) [custom_components.mail_and_packages] Attempting to reload sensors from the mail_and_packages integration 2024-07-03 14:09:42.355 DEBUG (MainThread) [custom_components.mail_and_packages] No changes detected not reloading sensors. 2024-07-03 14:09:42.355 DEBUG (MainThread) [custom_components.mail_and_packages] Attempting to reload sensors from the mail_and_packages integration 2024-07-03 14:09:42.356 DEBUG (MainThread) [custom_components.mail_and_packages] No changes detected not reloading sensors. 2024-07-03 14:09:42.356 DEBUG (MainThread) [custom_components.mail_and_packages] Attempting to reload sensors from the mail_and_packages integration 2024-07-03 14:09:42.356 DEBUG (MainThread) [custom_components.mail_and_packages] No changes detected not reloading sensors. 2024-07-03 14:09:42.356 DEBUG (MainThread) [custom_components.mail_and_packages] Attempting to reload sensors from the mail_and_packages integration 2024-07-03 14:09:42.356 DEBUG (MainThread) [custom_components.mail_and_packages] No changes detected not reloading sensors. 2024-07-03 14:09:42.356 DEBUG (MainThread) [custom_components.mail_and_packages] Attempting to reload sensors from the mail_and_packages integration 2024-07-03 14:09:42.356 DEBUG (MainThread) [custom_components.mail_and_packages] No changes detected not reloading sensors. 2024-07-03 14:09:42.356 DEBUG (MainThread) [custom_components.mail_and_packages] Attempting to reload sensors from the mail_and_packages integration 2024-07-03 14:09:42.356 DEBUG (MainThread) [custom_components.mail_and_packages] No changes detected not reloading sensors. 2024-07-03 14:09:42.356 DEBUG (MainThread) [custom_components.mail_and_packages] Attempting to reload sensors from the mail_and_packages integration 2024-07-03 14:09:42.356 DEBUG (MainThread) [custom_components.mail_and_packages] No changes detected not reloading sensors. 2024-07-03 14:09:42.356 DEBUG (MainThread) [custom_components.mail_and_packages] Attempting to reload sensors from the mail_and_packages integration 2024-07-03 14:09:42.356 DEBUG (MainThread) [custom_components.mail_and_packages] No changes detected not reloading sensors. 2024-07-03 14:09:42.356 DEBUG (MainThread) [custom_components.mail_and_packages] Attempting to reload sensors from the mail_and_packages integration 2024-07-03 14:09:42.356 DEBUG (MainThread) [custom_components.mail_and_packages] No changes detected not reloading sensors. 2024-07-03 14:09:42.356 DEBUG (MainThread) [custom_components.mail_and_packages] Attempting to reload sensors from the mail_and_packages integration 2024-07-03 14:09:42.356 DEBUG (MainThread) [custom_components.mail_and_packages] No changes detected not reloading sensors. 2024-07-03 14:09:42.356 DEBUG (MainThread) [custom_components.mail_and_packages] Attempting to reload sensors from the mail_and_packages integration 2024-07-03 14:09:42.356 DEBUG (MainThread) [custom_components.mail_and_packages] No changes detected not reloading sensors.

This is with debug logging turned on in the integration settings. The two repeating messages spit out another 156000 lines in the minute or two I had debug on.

firstof9 commented 4 days ago

What mail provider are you using?

Kai-Wulf commented 4 days ago

MXRoute

firstof9 commented 4 days ago

Please try the latest beta 0.3.31b0 and let me know if that helps with your issue.

Kai-Wulf commented 3 days ago

Its a step in the right direction. I have USPS and FedEx enabled and stable, but if I add any one of UPS, Amazon, or DHL, it goes into about a 500 line loop of checking the emails then repeating the attempting to reload entities issue.

Log snippet attached 2024-07-04_mail-and-packages_debug-snippet.log

firstof9 commented 3 days ago

Ok please try 0.3.31b1. Note the reconfigure option is moved now with the official reconfigure flow: image

Kai-Wulf commented 3 days ago

Enabled Packages, Delivering, and Delivered markers for USPS, UPS, FedEx, DHL, and Amazon, and it started up with no issues.

Looks like the issue is sorted Thanks Chris

Log of the reconfig attached 2024-07-04_mail-and-packages_0-3-31b1_debug-output.log

firstof9 commented 3 days ago

Excellent, thanks for testing!