KeyError: 'target_platform' with board 'wemos_d1_uno32'
- Dominant language
- No language data
- Stars
- 313
- Forks
- 40
- PR merge metrics
- No merged PRs in 30d
Description
### The problem


### Which version of ESPHome has the issue?
v2022.8.3
### What type of installation are you using?
Home Assistant Add-on
### Which version of Home Assistant has the issue?
2022.9.1
### What platform are you using?
ESP32
### Board
WEMOS D1 R32
### Component causing the issue
board
### Example YAML snippet
```yaml
esp32:
board: wemos_d1_uno32
```
### Anything in the logs that might be useful for us?
```txt
INFO Reading configuration /config/esphome/yaml.yaml...
ERROR Unexpected exception while reading configuration:
Traceback (most recent call last):
File "/usr/local/bin/esphome", line 33, in
sys.exit(load_entry_point('esphome', 'console_scripts', 'esphome')())
File "/esphome/esphome/__main__.py", line 931, in main
return run_esphome(sys.argv)
File "/esphome/esphome/__main__.py", line 909, in run_esphome
config = read_config(dict(args.substitution) if args.substitution else {})
File "/esphome/esphome/config.py", line 973, in read_config
res = load_config(command_line_substitutions)
File "/esphome/esphome/config.py", line 828, in load_config
return _load_config(command_line_substitutions)
File "/esphome/esphome/config.py", line 816, in _load_config
result = validate_config(config, command_line_substitutions)
File "/esphome/esphome/config.py", line 743, in validate_config
result.run_validation_steps()
File "/esphome/esphome/config.py", line 124, in run_validation_steps
task.step.run(self)
File "/esphome/esphome/config.py", line 489, in run
validated = schema(input_conf)
File "/esphome/esphome/voluptuous_schema.py", line 34, in __call__
res = super().__call__(data)
File "/usr/local/lib/python3.9/dist-packages/voluptuous/schema_builder.py", line 272, in __call__
return self._compiled([], data)
File "/usr/local/lib/python3.9/dist-packages/voluptuous/schema_builder.py", line 818, in validate_callable
return schema(data)
File "/esphome/esphome/voluptuous_schema.py", line 34, in __call__
res = super().__call__(data)
File "/usr/local/lib/python3.9/dist-packages/voluptuous/schema_builder.py", line 272, in __call__
return self._compiled([], data)
File "/usr/local/lib/python3.9/dist-packages/voluptuous/schema_builder.py", line 595, in validate_dict
return base_validate(path, iteritems(data), out)
File "/esphome/esphome/voluptuous_schema.py", line 148, in validate_mapping
cval = cvalue(key_path, value)
File "/usr/local/lib/python3.9/dist-packages/voluptuous/schema_builder.py", line 818, in validate_callable
return schema(data)
File "/esphome/esphome/pins.py", line 61, in validator
return validator({CONF_NUMBER: value})
File "/esphome/esphome/pins.py", line 67, in validator
return PIN_SCHEMA_REGISTRY[CORE.target_platform][1](value)
File "/esphome/esphome/core/__init__.py", line 587, in target_platform
return self.data[KEY_CORE][KEY_TARGET_PLATFORM]
KeyError: 'target_platform'
```
### Additional information
Regardless of the settings, the board option does not accept 'wemos_d1_uno32'
More info: https://docs.platformio.org/en/latest/boards/espressif32/wemos_d1_uno32.html
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.