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

Change mac add mac suffix from underscore to dash (#1702)

This commit is contained in:
Guillermo Ruffino
2021-04-26 22:41:16 -03:00
committed by GitHub
parent bb3d0706d3
commit 6d3ccf4df5

View File

@@ -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;
}