Skip to content

Commit ddb9cc6

Browse files
[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
1 parent 2d29ee4 commit ddb9cc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/mqttDiscovery.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ void createDiscovery(const char* sensor_type,
593593
}
594594
}
595595

596-
device["via_device"] = String(gateway_name); //device name of the board
596+
device["via_device"] = String(getMacAddress()); //mac address of the gateway so that the devices link to the gateway
597597
}
598598

599599
sensor["device"] = device;

0 commit comments

Comments
 (0)