Change unique id structure for HASS discovery (#1147)
Now: "uniq_id":"882D777014C-pres" before it was: "uniq_id":"882D7770014C-CLEARGRASSTRHKPA-pres" This will impact BLE and gateways entities
This commit is contained in:
1 parent
5c8fd626ec
commit
a9342f743f
2 files changed
+2
-2
No files matched your search
@@ -43,7 +43,7 @@ String getMacAddress() {
|
||||
}
|
||||
|
||||
String getUniqueId(String name, String sufix) {
|
||||
String uniqueId = (String)getMacAddress() + name + sufix;
|
||||
String uniqueId = (String)getMacAddress() + "-" + name + sufix;
|
||||
return String(uniqueId);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user