mirror of
https://github.com/esphome/esphome.git
synced 2025-11-13 13:25:50 +00:00
fix old platform
This commit is contained in:
@@ -273,7 +273,7 @@ def preload_core_config(config, result) -> str:
|
|||||||
)
|
)
|
||||||
|
|
||||||
if has_oldstyle:
|
if has_oldstyle:
|
||||||
plat = conf.pop(CONF_PLATFORM)
|
plat = conf.pop(CONF_PLATFORM).lower()
|
||||||
if not _is_target_platform(plat):
|
if not _is_target_platform(plat):
|
||||||
raise cv.Invalid(
|
raise cv.Invalid(
|
||||||
"Platform missing. You must include one of the available platform keys: "
|
"Platform missing. You must include one of the available platform keys: "
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
esphome:
|
esphome:
|
||||||
name: componenttestesp32oldstyle
|
name: componenttestesp32oldstyle
|
||||||
friendly_name: $component_name
|
friendly_name: $component_name
|
||||||
platform: esp32
|
platform: ESP32
|
||||||
board: nodemcu-32s
|
board: nodemcu-32s
|
||||||
|
|
||||||
logger:
|
logger:
|
||||||
|
|||||||
Reference in New Issue
Block a user