[DISC] Fix cosmetic issue in Home Assistant where devices don't link to gateway (#2220)
* Fix cosmetic issue in HA where devices don't link to gateway * Update via_device to use getMacAddress() to get the OMG device mac address
This commit is contained in:
1 parent
2d29ee4524
commit
ddb9cc67cc
1 file changed
+1
-1
@@ -593,7 +593,7 @@ void createDiscovery(const char* sensor_type,
|
||||
}
|
||||
}
|
||||
|
||||
device["via_device"] = String(gateway_name); //device name of the board
|
||||
device["via_device"] = String(getMacAddress()); //mac address of the gateway so that the devices link to the gateway
|
||||
}
|
||||
|
||||
sensor["device"] = device;
|
||||
|
||||
Reference in new issue
Block a user