1
0
mirror of https://github.com/esphome/esphome.git synced 2024-12-03 06:18:47 +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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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