Fixed HA hostname ESP8266 build issue

This commit is contained in:
Gunnar Skjold
2024-06-06 17:17:59 +02:00
parent 5eeab2ba89
commit da6328c246

View File

@@ -35,7 +35,7 @@ public:
char hostname[32];
#if defined(ESP8266)
strcpy(hostname, WiFi.hostname());
strcpy(hostname, WiFi.hostname().c_str());
#elif defined(ESP32)
strcpy(hostname, WiFi.getHostname());
#endif