core: Tomorrow.io stuck on initializing

The problem

The Tomorrow.io integration was stuck on initializing. I restarted HA Core and updated, but no help. I disabled the integration, restarted HA Core, and re-enabled the integration which fixed the issue. I feel like there was previously a “reload” button for the integration which fixed these types of issues, but it seems to have disappeared.

What version of Home Assistant Core has the issue?

2023.05.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

Tomorrow.io

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Nothing in log, I checked.

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 3
  • Comments: 36 (12 by maintainers)

Most upvoted comments

The fix should be in 2023.8.2

I created PR to fix this. Hopefully it can be integrated soon including for 2023.8 release.

Just got it earlier and the new 60min option works great - thank you!

2023.8.2 was released today. Everyone please give this reply a 👍 if it’s working for you now or a 👎 if it’s still not working.

same here, stuck on inizializing. tried disable/reboot/reenable but didn’tfix. Also tried with new HA 2023.7… no fixed

Your guess is as good as mine, but hopefully soon.

Ok, it looks like it is the param we can configure on the “device section”, but the maximum value we can select is 30 (minutes) which is not allowed on the free plan either. I have been doing some tests with the curl call tomorrow.io provides on their web and seems that using 1h (1 hour):

curl --compressed --request GET --url \
'https://api.tomorrow.io/v4/timelines?location=40.75872069597532,-73.98529171943665&fields=temperature&timesteps=1h&units=metric&apikey=XXX'

I think the tomorrow.io integration should use 1h by default, and add some “warning” in the case a below value is used notifying it requires a premium plan

Alright, thanks for that clarification on integration logs. I just did a curl request from command line; it seems it is 403003.

  1. curl --compressed --request GET --url
    https://api.tomorrow.io/v4/timelines?location=40.75872069597532,-73.98529171943665&fields=temperature&timesteps=30m&units=metric&apikey=XXXXXXXXXXXX’ {“code”:403003,“type”:“Forbidden Action”,“message”:“The plan is restricted and cannot perform this action. Adjust action and try again: Querying ‘30m’ timestep is not allowed in the current plan”}#
  2. replacing 30 min time step to 1 hr which is tomorrow.io’s standard curl example; curl --compressed --request GET --url
    https://api.tomorrow.io/v4/timelines?location=40.75872069597532,-73.98529171943665&fields=temperature&timesteps=1h&units=metric&apikey=XXXXXXXXXX’ and that gives a valid response.

I had mentioned this in the pytomorrowio issues: https://github.com/raman325/pytomorrowio/issues/29

I submitted PR # https://github.com/raman325/pytomorrowio/pull/30 to enhance the logging for this.

Identical problem with this intergration

Also same here. Tried removing and adding. Disable/Enable but still stuck on initializing. HA 2023.7…

Same here. I’m using last version of HÁ. No success with disable/reboot/reload. log: Logger: homeassistant.config_entries Source: components/tomorrowio/init.py:205 First occurred: June 18, 2023 at 11:14:54 PM (9 occurrences) Last logged: 6:45:37 AM

Error setting up entry Tomorrow.io - CasaHeitor for tomorrowio Error setting up entry Tomorrow.io for tomorrowio Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 387, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/usr/src/homeassistant/homeassistant/components/tomorrowio/init.py”, line 141, in async_setup_entry await coordinator.async_setup_entry(entry) File “/usr/src/homeassistant/homeassistant/components/tomorrowio/init.py”, line 205, in async_setup_entry await self._coordinator_ready.wait() File “/usr/local/lib/python3.11/asyncio/locks.py”, line 213, in wait await fut asyncio.exceptions.CancelledError

The same problem

I have the same problem - but the disable/restart/reenable isn’t fixing it for me.

Here is my current environment: Home Assistant 2023.6.2 Supervisor 2023.06.2 Operating System 10.3 Frontend 20230608.0 - latest

@raman325, @lymanepp I can confirm this problem, too!

@cniweb if you want it to work now, disable, restart, enable. Fixed it for me.