mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 08:19:52 +03:00
HA firstrun only delete config, create HA in next loop (mqtt queue)
This commit is contained in:
@@ -532,6 +532,7 @@ void EMSESP::publish_device_values(uint8_t device_type) {
|
|||||||
if (emsdevice->ha_config_firstrun()) {
|
if (emsdevice->ha_config_firstrun()) {
|
||||||
emsdevice->ha_config_clear();
|
emsdevice->ha_config_clear();
|
||||||
emsdevice->ha_config_firstrun(false);
|
emsdevice->ha_config_firstrun(false);
|
||||||
|
return;
|
||||||
} else {
|
} else {
|
||||||
// see if we need to delete and /config topics before adding the payloads
|
// see if we need to delete and /config topics before adding the payloads
|
||||||
emsdevice->mqtt_ha_entity_config_remove();
|
emsdevice->mqtt_ha_entity_config_remove();
|
||||||
|
|||||||
Reference in New Issue
Block a user