mirror of https://github.com/arendst/Tasmota.git
the cover state topic was useless and caused parsing errors in Home Assistant
This commit is contained in:
parent
f72b1fb24e
commit
fea4d3ec93
|
@ -1030,8 +1030,7 @@ void HAssAnnounceShutters(void)
|
||||||
} else {
|
} else {
|
||||||
snprintf_P(stemp1, sizeof(stemp1), PSTR("%s"), SettingsText(SET_FRIENDLYNAME1 + i));
|
snprintf_P(stemp1, sizeof(stemp1), PSTR("%s"), SettingsText(SET_FRIENDLYNAME1 + i));
|
||||||
}
|
}
|
||||||
GetTopic_P(stemp2, TELE, TasmotaGlobal.mqtt_topic, D_RSLT_STATE);
|
Response_P(PSTR("{\"name\":\"%s\""), stemp1);
|
||||||
Response_P(HASS_DISCOVER_BASE, stemp1, stemp2);
|
|
||||||
|
|
||||||
GetTopic_P(stemp1, TELE, TasmotaGlobal.mqtt_topic, S_LWT);
|
GetTopic_P(stemp1, TELE, TasmotaGlobal.mqtt_topic, S_LWT);
|
||||||
TryResponseAppend_P(HASS_DISCOVER_SENSOR_LWT, stemp1);
|
TryResponseAppend_P(HASS_DISCOVER_SENSOR_LWT, stemp1);
|
||||||
|
|
Loading…
Reference in New Issue