|

楼主 |
发表于 2020-10-18 11:58:44
|
显示全部楼层
使用 官方的name 的那种方式检查配置那里就会报错了
switch:
- platform: broadlink
host: 192.168.1.19
mac: 24 F:A7:F1:22:86
switches:
- name: Philips TV
# friendly_name: "电视"
command_on: ''
command_off: ''
Invalid config for [switch.broadlink]: expected dictionary for dictionary value @ data['switches']. Got [OrderedDict([('name', 'Philips TV'), ('command_on', ''), ('command_off', '')])]. (See ?, line ?). |
|