mirror of https://github.com/arendst/Tasmota.git
safeboot: don't publish sensor valies (#21193)
This commit is contained in:
parent
c1845b952b
commit
87f5fbd5fd
|
@ -1021,6 +1021,7 @@ bool MqttShowSensor(bool call_show_sensor) {
|
|||
|
||||
GetSensorValues();
|
||||
|
||||
#ifndef FIRMWARE_SAFEBOOT
|
||||
if (TasmotaGlobal.global_update && Settings->flag.mqtt_add_global_info) { // SetOption2 (MQTT) Add global temperature/humidity/pressure info to JSON sensor message
|
||||
if ((TasmotaGlobal.humidity > 0) || !isnan(TasmotaGlobal.temperature_celsius) || (TasmotaGlobal.pressure_hpa != 0)) {
|
||||
uint32_t add_comma = 0;
|
||||
|
@ -1055,6 +1056,7 @@ bool MqttShowSensor(bool call_show_sensor) {
|
|||
ResponseJsonEnd();
|
||||
}
|
||||
}
|
||||
#endif // FIRMWARE_SAFEBOOT
|
||||
|
||||
bool json_data_available = (ResponseLength() - json_data_start);
|
||||
MqttAppendSensorUnits();
|
||||
|
|
Loading…
Reference in New Issue