|
ha升级到0.115.6以后,改装模块无法添加,亲大神帮忙解决。
日志如下:
Logger: homeassistant.util.logging
Source: util/logging.py:108
First occurred: 上午7:35:10 (2 occurrences)
Last logged: 上午7:35:10
* Exception in async_discover when dispatching 'mqtt_discovery_new_switch_mqtt': ({'name': 'desklight_AA6D66_1, 'command_topic': 'hassmart/switch/hassmart_2key_module_AA6D66_1/set', 'state_topic': 'hassmart/switch/hassmart_2key_module_AA6D66_1/state', 'ip': '192.168.0.209', 'ver': '1.5', 'qos': 1, 'retain': False, 'platform': 'mqtt'},) Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/mqtt/switch.py", line 86, in async_discover config = PLATFORM_SCHEMA(discovery_payload) File "/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py", line 272, in __call__ return self._compiled([], data) File "/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py", line 594, in validate_dict return base_validate(path, iteritems(data), out) File "/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py", line 432, in validate_mapping raise er.MultipleInvalid(errors) voluptuous.error.MultipleInvalid: extra keys not allowed @ data['ip']
* Exception in async_discover when dispatching 'mqtt_discovery_new_switch_mqtt': ({'name': 'desklight_AA6D66_2', 'command_topic': 'hassmart/switch/hassmart_2key_module_AA6D66_2/set', 'state_topic': 'hassmart/switch/hassmart_2key_module_AA6D66_2/state', 'ip': '192.168.0.209', 'ver': '1.5', 'qos': 1, 'retain': False, 'platform': 'mqtt'},) Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/mqtt/switch.py", line 86, in async_discover config = PLATFORM_SCHEMA(discovery_payload) File "/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py", line 272, in __call__ return self._compiled([], data) File "/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py", line 594, in validate_dict return base_validate(path, iteritems(data), out) File "/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py", line 432, in validate_mapping raise er.MultipleInvalid(errors) voluptuous.error.MultipleInvalid: extra keys not allowed @ data['ip'] |
|