mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 21:44:55 +01:00
Change mac add mac suffix from underscore to dash (#1702)
This commit is contained in:
parent
bb3d0706d3
commit
6d3ccf4df5
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ class Application {
|
||||||
public:
|
public:
|
||||||
void pre_setup(const std::string &name, const char *compilation_time, bool name_add_mac_suffix) {
|
void pre_setup(const std::string &name, const char *compilation_time, bool name_add_mac_suffix) {
|
||||||
if (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 {
|
} else {
|
||||||
this->name_ = name;
|
this->name_ = name;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue