mirror of
https://github.com/esphome/esphome.git
synced 2024-11-26 17:05:21 +01:00
Fix default libretiny manufacturer reported to HA (#5549)
This commit is contained in:
parent
1a44c6487e
commit
cc4c0e3e0b
1 changed files with 1 additions and 1 deletions
|
@ -251,7 +251,7 @@ async def component_to_code(config):
|
||||||
# setup board config
|
# setup board config
|
||||||
cg.add_platformio_option("board", config[CONF_BOARD])
|
cg.add_platformio_option("board", config[CONF_BOARD])
|
||||||
cg.add_build_flag("-DUSE_LIBRETINY")
|
cg.add_build_flag("-DUSE_LIBRETINY")
|
||||||
cg.add_build_flag(f"-DUSE_{config[CONF_COMPONENT_ID]}")
|
cg.add_build_flag(f"-DUSE_{config[CONF_COMPONENT_ID].upper()}")
|
||||||
cg.add_build_flag(f"-DUSE_LIBRETINY_VARIANT_{config[CONF_FAMILY]}")
|
cg.add_build_flag(f"-DUSE_LIBRETINY_VARIANT_{config[CONF_FAMILY]}")
|
||||||
cg.add_define("ESPHOME_BOARD", config[CONF_BOARD])
|
cg.add_define("ESPHOME_BOARD", config[CONF_BOARD])
|
||||||
cg.add_define("ESPHOME_VARIANT", FAMILY_FRIENDLY[config[CONF_FAMILY]])
|
cg.add_define("ESPHOME_VARIANT", FAMILY_FRIENDLY[config[CONF_FAMILY]])
|
||||||
|
|
Loading…
Reference in a new issue