Skip to content

Commit

Permalink
Disabled Thermostat overview in web GUI (was not populated).
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor-Mo committed May 5, 2020
1 parent c03857f commit 7be74b7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions src/ems-esp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2038,10 +2038,10 @@ void WebCallback(JsonObject root) {
*/
// send over Thermostat data
JsonObject thermostat = root.createNestedObject("thermostat");

#ifdef nuniet
if (ems_getThermostatEnabled()) {
thermostat["ok"] = true;
#ifdef nuniet

char buffer[200];
thermostat["tm"] = ems_getDeviceDescription(EMS_DEVICE_TYPE_THERMOSTAT, buffer, true);

Expand Down Expand Up @@ -2080,10 +2080,11 @@ void WebCallback(JsonObject root) {
} else if (thermoMode == EMS_THERMOSTAT_MODE_NIGHT) {
thermostat["tmode"] = "night";
}
#endif

} else {
#endif
thermostat["ok"] = false;
}
// }

JsonObject boiler = root.createNestedObject("boiler");
if (ems_getBoilerEnabled()) {
Expand Down
2 changes: 1 addition & 1 deletion src/version.h
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define APP_VERSION "1.9.6.20042921"
#define APP_VERSION "1.9.7.20050520"

0 comments on commit 7be74b7

Please sign in to comment.