From 30c77a28c836d370feb9d7ddf492df95718c3a6a Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Tue, 29 Jun 2021 15:45:48 +0200 Subject: [PATCH] Fix MQTT retain when MI32Option6 is enabled (#12494) --- tasmota/xsns_62_esp32_mi_ble.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/xsns_62_esp32_mi_ble.ino b/tasmota/xsns_62_esp32_mi_ble.ino index 114ca8f70..039e0fb8c 100644 --- a/tasmota/xsns_62_esp32_mi_ble.ino +++ b/tasmota/xsns_62_esp32_mi_ble.ino @@ -3084,7 +3084,7 @@ void MI32ShowTriggeredSensors(){ } sprintf(SensorTopic, "tele/tasmota_ble/%s", id); - MqttPublish(SensorTopic); + MqttPublish(SensorTopic, Settings->flag.mqtt_sensor_retain); } else { MqttPublishPrefixTopic_P(STAT, PSTR(D_RSLT_SENSOR), Settings->flag.mqtt_sensor_retain); }