Open peerless0828 opened 2 years ago
I also met, see the stack, should be the variable ‘loop’ does not exist in the object 'self.hass'
manual update custom_components/xiaomi_miot_raw/basic_dev_class.py
line:709
yield from asyncio.wait(update_tasks, loop=self.hass.loop)
to
yield from asyncio.wait(update_tasks)
reboot home-assistant, this error is gone
but I'm not a python developer, I don't know if there will be other problems
Logger: homeassistant.components.websocket_api.http.connection Source: custom_components/xiaomi_miot_raw/basic_dev_class.py:709 Integration: Home Assistant WebSocket API (documentation, issues) First occurred: 2022年7月8日 20:02:23 (12 occurrences) Last logged: 08:19:06
[547909470816] wait() got an unexpected keyword argument 'loop' [547911018928] wait() got an unexpected keyword argument 'loop' [547503785488] wait() got an unexpected keyword argument 'loop' Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 193, in handle_call_service await hass.services.async_call( File "/usr/src/homeassistant/homeassistant/core.py", line 1713, in async_call task.result() File "/usr/src/homeassistant/homeassistant/core.py", line 1750, in _execute_service await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)( File "/config/custom_components/xiaomi_miot_raw/basic_dev_class.py", line 709, in async_service_handler yield from asyncio.wait(update_tasks, loop=self.hass.loop) TypeError: wait() got an unexpected keyword argument 'loop'