[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:
Peter Lambrechtsen authored and GitHub committed 2025-08-07 06:52:38 -05:00
1 parent 2d29ee4524
commit ddb9cc67cc
1 file changed
+1 -1
+1 -1
View File
@@ -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;