GuyKh / ims-custom-component

The Israel Meteorological Service (IMS) integration component for home assistant
MIT License
41 stars 8 forks source link

stopped work - Retrying setup: 'NoneType' object is not iterable #50

Closed Gugulator closed 1 year ago

Gugulator commented 1 year ago

using latest version. have error in logs: Config entry 'IMS Weather' for ims integration not ready yet: 'NoneType' object is not iterable; Retrying in background. is possible due to some changes in IMS servers or something?

GuyKh commented 1 year ago

If you have a longer stacktrace can you share it?

Gugulator commented 1 year ago

I can share screenshot of this integration if it helps. How can i get stacktrace? Screenshot_2023-06-07-22-30-01-548-edit_io homeassistant companion android

rotem657 commented 1 year ago

+1

haimn commented 1 year ago

All I can see in the logs is:

homeassistant  | 2023-06-08 07:47:04.772 WARNING (MainThread) [homeassistant.config_entries] Config entry 'IMS Weather' for ims integration not ready yet: 'NoneType' object is not iterable; Retrying in background

I don't have the exception\ stacktrace in the logs

It happened after the 2023.06 update

garbovich commented 1 year ago

Mine is broken after HA 2023.06 update

vadimnazaroff commented 1 year ago

Issue occurred with latest update, debug logs is below: 2023-06-08 11:07:31.701 INFO (MainThread) [homeassistant.setup] Setting up ims 2023-06-08 11:07:31.701 INFO (MainThread) [homeassistant.setup] Setup of domain ims took 0.0 seconds 2023-06-08 11:07:32.867 DEBUG (MainThread) [custom_components.ims.weather_update_coordinator] Data fetched from IMS of 06/08/2023, 11:00:00 2023-06-08 11:07:32.867 DEBUG (MainThread) [custom_components.ims.weather_update_coordinator] Finished fetching ims data in 1.156 seconds (success: False) 2023-06-08 11:07:32.867 WARNING (MainThread) [homeassistant.config_entries] Config entry 'IMS Weather' for ims integration not ready yet: 'NoneType' object is not iterable; Retrying in background 2023-06-08 11:08:11.974 INFO (MainThread) [httpx] HTTP Request: GET https://ims.gov.il/sites/default/files/ims_data/rss/forecast_sea/rssForecastSea_211_he.xml "HTTP/1.1 200 OK" 2023-06-08 11:08:11.986 INFO (MainThread) [httpx] HTTP Request: GET https://ims.gov.il/sites/default/files/ims_data/rss/forecast_country/rssForecastCountry_he.xml "HTTP/1.1 200 OK" 2023-06-08 11:08:12.224 INFO (MainThread) [httpx] HTTP Request: GET https://ims.gov.il/sites/default/files/ims_data/rss/alert/rssAlert_general_country_he.xml "HTTP/1.1 200 OK" 2023-06-08 11:08:12.364 INFO (MainThread) [httpx] HTTP Request: GET https://ims.gov.il/sites/default/files/ims_data/rss/forecast_sea/rssForecastSea_212_he.xml "HTTP/1.1 200 OK" 2023-06-08 11:08:58.129 INFO (MainThread) [custom_components.ims] An existing IMS weather coordinator already exists for this location. Using that one instead 2023-06-08 11:09:08.575 INFO (MainThread) [custom_components.ims] An existing IMS weather coordinator already exists for this location. Using that one instead 2023-06-08 11:09:28.719 INFO (MainThread) [custom_components.ims] An existing IMS weather coordinator already exists for this location. Using that one instead 2023-06-08 11:10:09.142 INFO (MainThread) [custom_components.ims] An existing IMS weather coordinator already exists for this location. Using that one instead 2023-06-08 11:11:29.268 INFO (MainThread) [custom_components.ims] An existing IMS weather coordinator already exists for this location. Using that one instead

Gugulator commented 1 year ago

My issue started one day before new update has been released. And I'm not using beta

liranwaiss commented 1 year ago

Same Problem... started i think 2 day ago still on version 2023.05.04

Retrying setup: 'NoneType' object is not iterable

GuyKh commented 1 year ago

Yeah. See it here too:

It starts with:

2023-06-08 14:42:01.307 DEBUG (MainThread) [custom_components.ims.weather_update_coordinator] Data fetched from IMS of 06/08/2023, 14:00:00
2023-06-08 14:42:01.307 DEBUG (MainThread) [custom_components.ims.weather_update_coordinator] Finished fetching ims data in 1.052 seconds (success: False)
2023-06-08 14:42:01.307 WARNING (MainThread) [homeassistant.config_entries] Config entry 'IMS' for ims integration not ready yet: 'NoneType' object is not iterable; Retrying in background

And then keep printing:

[custom_components.ims] An existing IMS weather coordinator already exists for this location. Using that one instead

Looking for solutions.

mkamioner commented 1 year ago

+1

vadimnazaroff commented 1 year ago

Fixed in latest 0.1.15 release by Guy

2023-06-08 16:33:44.581 DEBUG (MainThread) [custom_components.ims.weather_update_coordinator] Data fetched from IMS of 06/08/2023, 16:00:00 2023-06-08 16:33:44.582 DEBUG (MainThread) [custom_components.ims.weather_update_coordinator] Finished fetching ims data in 3.299 seconds (success: True)

liranwaiss commented 1 year ago

Thanks for the quick solution ! great job ! now at version 0.1.15 it work great again :-)

Gugulator commented 1 year ago

Thank you. Now it works 👍