[33mWARNING Calling ESPHome with the configuration before the command is deprecated and will be removed in the future. [0m
[33mWARNING Please instead use:[0m
[33mWARNING esphome compile c:\espdc1\config_yaml\dc1-homeassistant-api.yaml[0m
[32mINFO Reading configuration c:\espdc1\config_yaml\dc1-homeassistant-api.yaml...[0m
[31mERROR Unexpected exception while reading configuration:[0m
Traceback (most recent call last):
File "c:\espdc1\Python\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\espdc1\Python\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "c:\espdc1\Python\lib\site-packages\esphome\__main__.py", line 834, in <module>
sys.exit(main())
File "c:\espdc1\Python\lib\site-packages\esphome\__main__.py", line 825, in main
return run_esphome(sys.argv)
File "c:\espdc1\Python\lib\site-packages\esphome\__main__.py", line 803, in run_esphome
config = read_config(dict(args.substitution) if args.substitution else {})
File "c:\espdc1\Python\lib\site-packages\esphome\config.py", line 974, in read_config
res = load_config(command_line_substitutions)
File "c:\espdc1\Python\lib\site-packages\esphome\config.py", line 829, in load_config
return _load_config(command_line_substitutions)
File "c:\espdc1\Python\lib\site-packages\esphome\config.py", line 817, in _load_config
result = validate_config(config, command_line_substitutions)
File "c:\espdc1\Python\lib\site-packages\esphome\config.py", line 744, in validate_config
result.run_validation_steps()
File "c:\espdc1\Python\lib\site-packages\esphome\config.py", line 124, in run_validation_steps
task.step.run(self)
File "c:\espdc1\Python\lib\site-packages\esphome\config.py", line 488, in run
validated = schema(input_conf)
File "c:\espdc1\Python\lib\site-packages\esphome\voluptuous_schema.py", line 34, in __call__
res = super().__call__(data)
File "c:\espdc1\Python\lib\site-packages\voluptuous\schema_builder.py", line 272, in __call__
return self._compiled([], data)
File "c:\espdc1\Python\lib\site-packages\voluptuous\schema_builder.py", line 817, in validate_callable
return schema(data)
File "c:\espdc1\Python\lib\site-packages\esphome\voluptuous_schema.py", line 34, in __call__
res = super().__call__(data)
File "c:\espdc1\Python\lib\site-packages\voluptuous\schema_builder.py", line 272, in __call__
return self._compiled([], data)
File "c:\espdc1\Python\lib\site-packages\voluptuous\schema_builder.py", line 594, in validate_dict
return base_validate(path, iteritems(data), out)
File "c:\espdc1\Python\lib\site-packages\esphome\voluptuous_schema.py", line 148, in validate_mapping
cval = cvalue(key_path, value)
File "c:\espdc1\Python\lib\site-packages\voluptuous\schema_builder.py", line 817, in validate_callable
return schema(data)
File "c:\espdc1\Python\lib\site-packages\esphome\pins.py", line 66, in validator
return entry[1](value)
TypeError: 'tuple' object is not callable
请按任意键继续. . .