fix old platform

This commit is contained in:
Tomasz Duda 2024-10-28 19:37:22 +01:00
parent c3ea6630d3
commit 11a0f706a1
2 changed files with 2 additions and 2 deletions

View file

@ -273,7 +273,7 @@ def preload_core_config(config, result) -> str:
)
if has_oldstyle:
plat = conf.pop(CONF_PLATFORM)
plat = conf.pop(CONF_PLATFORM).lower()
if not _is_target_platform(plat):
raise cv.Invalid(
"Platform missing. You must include one of the available platform keys: "

View file

@ -1,7 +1,7 @@
esphome:
name: componenttestesp32oldstyle
friendly_name: $component_name
platform: esp32
platform: ESP32
board: nodemcu-32s
logger: