mirror of
https://github.com/1technophile/OpenMQTTGateway.git
synced 2026-02-20 00:32:04 +01:00
[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:
committed by
GitHub
parent
2d29ee4524
commit
ddb9cc67cc
@@ -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