Logger: homeassistant.helpers.script.websocket_api_script
Source: custom_components/xiaomi_miot_raw/basic_dev_class.py:709
Integration: Xiaomi MIoT (documentation, issues)
First occurred: 20:31:15 (1 occurrences)
Last logged: 20:31:15
websocket_api script: Error executing script. Unexpected error for call_service at pos 1: wait() got an unexpected keyword argument 'loop'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 447, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 680, in _async_call_service_step
await service_task
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'
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: 20:31:15 (1 occurrences)
Last logged: 20:31:15
[139955013710656] Error handling message: Unknown error (unknown_error)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 27, in _handle_async_response
await func(hass, connection, msg)
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 646, in handle_execute_script
await script_obj.async_run(msg.get("variables"), context=context)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1513, in async_run
await asyncio.shield(run.async_run())
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 405, in async_run
await self._async_step(log_exceptions=False)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 449, in _async_step
self._handle_exception(
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 472, in _handle_exception
raise exception
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 447, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 680, in _async_call_service_step
await service_task
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'
Logger: homeassistant.components.select
Source: runner.py:119
Integration: 选择器 (documentation, issues)
First occurred: 20:31:18 (1 occurrences)
Last logged: 20:31:18
Setup of select platform xiaomi_miot_raw is taking over 10 seconds.
使用HA中开发者工具测试Xiaomi MIoT: speak_text服务调用能听到小爱同学播报,但会收到如下错误弹窗:”调用服务 xiaomi_miot_raw.speak_text 失败。 Unknown error“ 通过NODE-RED调用,同样也收到错误日志。 MIOT版本已经更新到最新。
以下是HA中的相关日志:
Logger: homeassistant.helpers.script.websocket_api_script Source: custom_components/xiaomi_miot_raw/basic_dev_class.py:709 Integration: Xiaomi MIoT (documentation, issues) First occurred: 20:31:15 (1 occurrences) Last logged: 20:31:15
websocket_api script: Error executing script. Unexpected error for call_service at pos 1: wait() got an unexpected keyword argument 'loop' Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 447, in _async_step await getattr(self, handler)() File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 680, in _async_call_service_step await service_task 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'
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: 20:31:15 (1 occurrences) Last logged: 20:31:15
[139955013710656] Error handling message: Unknown error (unknown_error) Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 27, in _handle_async_response await func(hass, connection, msg) File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 646, in handle_execute_script await script_obj.async_run(msg.get("variables"), context=context) File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1513, in async_run await asyncio.shield(run.async_run()) File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 405, in async_run await self._async_step(log_exceptions=False) File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 449, in _async_step self._handle_exception( File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 472, in _handle_exception raise exception File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 447, in _async_step await getattr(self, handler)() File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 680, in _async_call_service_step await service_task 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'
Logger: homeassistant.components.select Source: runner.py:119 Integration: 选择器 (documentation, issues) First occurred: 20:31:18 (1 occurrences) Last logged: 20:31:18
Setup of select platform xiaomi_miot_raw is taking over 10 seconds.