1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-22 21:22:22 +01:00

Add platform and board to mdns response when API is used (#1871)

This commit is contained in:
Jesse Hills
2021-06-09 14:23:48 +12:00
committed by GitHub
parent 5cf18235e3
commit 65c50e4f01
3 changed files with 10 additions and 1 deletions

View File

@@ -349,6 +349,7 @@ async def to_code(config):
if config[CONF_INCLUDES]:
CORE.add_job(add_includes, config[CONF_INCLUDES])
cg.add_define("ESPHOME_BOARD", CORE.board)
if CONF_PROJECT in config:
cg.add_define("ESPHOME_PROJECT_NAME", config[CONF_PROJECT][CONF_NAME])
cg.add_define("ESPHOME_PROJECT_VERSION", config[CONF_PROJECT][CONF_VERSION])