mirror of
https://github.com/esphome/esphome.git
synced 2024-11-10 09:17:46 +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:
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue