mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-03-14 06:17:40 +00:00
Merge pull request #172 from kng/homeassistant
Homeassistant mqtt discovery, wip
This commit is contained in:
@@ -547,7 +547,7 @@ void AmsWebServer::configMqttHtml() {
|
||||
html.replace("{u}", mqtt.username);
|
||||
html.replace("{pw}", mqtt.password);
|
||||
html.replace("{f}", String(mqtt.payloadFormat));
|
||||
for(int i = 0; i<4; i++) {
|
||||
for(int i = 0; i<5; i++) {
|
||||
html.replace("{f" + String(i) + "}", mqtt.payloadFormat == i ? "selected" : "");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user