From 6d3ccf4df569469aab60065c1d0f7b15efe2114c Mon Sep 17 00:00:00 2001 From: Guillermo Ruffino Date: Mon, 26 Apr 2021 22:41:16 -0300 Subject: [PATCH] Change mac add mac suffix from underscore to dash (#1702) --- esphome/core/application.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/core/application.h b/esphome/core/application.h index e9c8638f60..aeda245161 100644 --- a/esphome/core/application.h +++ b/esphome/core/application.h @@ -39,7 +39,7 @@ class Application { public: void pre_setup(const std::string &name, const char *compilation_time, bool name_add_mac_suffix) { if (name_add_mac_suffix) { - this->name_ = name + "_" + get_mac_address().substr(6); + this->name_ = name + "-" + get_mac_address().substr(6); } else { this->name_ = name; }