fixed link to the EMS-ESP in HA

prefix "http:// " is needed though
This commit is contained in:
pswid
2023-01-30 18:31:57 +01:00
parent b3ee5f4d9a
commit b18da9064b

View File

@@ -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");