Home-Assistant-wundergroundpws icon indicating copy to clipboard operation
Home-Assistant-wundergroundpws copied to clipboard

Error on startup

Open justinmaiuto opened this issue 2 years ago • 2 comments

Integration errors on startup

2022-05-01 22:46:27 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up wundergroundpws platform for sensor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/wundergroundpws/sensor.py", line 401, in async_setup_platform await rest.async_update() File "/config/custom_components/wundergroundpws/sensor.py", line 551, in async_update with async_timeout.timeout(10, loop=self._hass.loop): TypeError: timeout() got an unexpected keyword argument 'loop'

To Reproduce Steps to reproduce the behavior: Start home assistant

Expected behavior Integration starts without error

Desktop (please complete the following information): Home Assistant 2022.4.7

Additional context Detected code that called async_timeout.timeout with loop keyword argument. The loop keyword argument is deprecated and calls will fail after Home Assistant 2022.2.

justinmaiuto avatar May 01 '22 13:05 justinmaiuto

Looks like a fix similar to this needs to be implemented?

https://github.com/home-assistant/core/pull/69304

justinmaiuto avatar May 01 '22 13:05 justinmaiuto

see #97

cytech avatar May 01 '22 13:05 cytech