[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
2025-08-07 23:52:38 +12:00
committed by GitHub
parent 2d29ee4524
commit ddb9cc67cc

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;