mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
fixed link to the EMS-ESP in HA
prefix "http:// " is needed though
This commit is contained in:
@@ -629,9 +629,9 @@ void Mqtt::ha_status() {
|
||||
dev["mf"] = "proddy";
|
||||
dev["mdl"] = "EMS-ESP";
|
||||
if (EMSESP::system_.ethernet_connected())
|
||||
dev["cu"] = ETH.localIP().toString();
|
||||
dev["cu"] = "http://" + ETH.localIP().toString();
|
||||
else
|
||||
dev["cu"] = WiFi.localIP().toString();
|
||||
dev["cu"] = "http://" + WiFi.localIP().toString();
|
||||
JsonArray ids = dev.createNestedArray("ids");
|
||||
ids.add("ems-esp");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user