1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-19 03:32:20 +01:00

Fixed topic when mac is used (#7988)

This commit is contained in:
Dusan Cervenka
2025-01-13 05:34:07 +01:00
committed by GitHub
parent 30bb806f26
commit b4a2b50ee0
3 changed files with 9 additions and 3 deletions

View File

@@ -373,7 +373,7 @@ async def to_code(config):
)
)
cg.add(var.set_topic_prefix(config[CONF_TOPIC_PREFIX]))
cg.add(var.set_topic_prefix(config[CONF_TOPIC_PREFIX], CORE.name))
if config[CONF_USE_ABBREVIATIONS]:
cg.add_define("USE_MQTT_ABBREVIATIONS")