change MQTT display of TRIGGERED sensors.

This commit is contained in:
Simon Hailes 2021-02-17 10:47:34 +00:00
parent ca4ccd24d5
commit 10ee56b9da
1 changed files with 2 additions and 1 deletions

View File

@ -2835,7 +2835,8 @@ void MI32ShowTriggeredSensors(){
cnt++; cnt++;
ResponseAppend_P(PSTR(",")); ResponseAppend_P(PSTR(","));
MI32GetOneSensorJson(sensor, 0); // hide sensor name if HASS or option6
MI32GetOneSensorJson(sensor, (maxcnt == 1));
int mlen = strlen(TasmotaGlobal.mqtt_data); int mlen = strlen(TasmotaGlobal.mqtt_data);
// if we ran out of room, leave here. // if we ran out of room, leave here.