Build fix

This commit is contained in:
Gunnar Skjold
2022-03-20 20:11:29 +01:00
parent a675f56f9c
commit a07c55889f
2 changed files with 4 additions and 1 deletions

View File

@@ -210,6 +210,7 @@ bool HomeAssistantMqttHandler::publishSystem(HwTools* hw) {
#elif defined(ESP32)
String haUID = WiFi.getHostname();
#endif
haUID.replace("-", "_");
String haUrl = "http://" + haUID + ".local/";
for(int i=0;i<sensors;i++){