本帖最后由 suwill 于 2020-1-29 04:10 编辑
Jan 29 04:06:48 ubuntu hass[1587]: 2020-01-29 04:06:48 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.140150222835608] extra keys not allowed @ data['message']
Jan 29 04:06:48 ubuntu hass[1587]: Traceback (most recent call last):
Jan 29 04:06:48 ubuntu hass[1587]: File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/components/websocket_api/commands.py", line 133, in handle_call_service
Jan 29 04:06:48 ubuntu hass[1587]: connection.context(msg),
Jan 29 04:06:48 ubuntu hass[1587]: File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/core.py", line 1213, in async_call
Jan 29 04:06:48 ubuntu hass[1587]: processed_data = handler.schema(service_data)
Jan 29 04:06:48 ubuntu hass[1587]: File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 272, in __call__
Jan 29 04:06:48 ubuntu hass[1587]: return self._compiled([], data)
Jan 29 04:06:48 ubuntu hass[1587]: File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 594, in validate_dict
Jan 29 04:06:48 ubuntu hass[1587]: return base_validate(path, iteritems(data), out)
Jan 29 04:06:48 ubuntu hass[1587]: File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/voluptuous/schema_builder.py", line 432, in validate_mapping
Jan 29 04:06:48 ubuntu hass[1587]: raise er.MultipleInvalid(errors)
Jan 29 04:06:48 ubuntu hass[1587]: voluptuous.error.MultipleInvalid: extra keys not allowed @ data['message']
Jan 29 04:07:00 ubuntu hass[1587]: 2020-01-29 04:07:00 WARNING (Thread-3) [custom_components.hello_miai] 'error'
请问这种情况如何处理?
HA版本:0.103.6
|