Fix reset MQTT topics

This commit is contained in:
iranl
2024-11-28 22:25:10 +01:00
parent 21632ffa4d
commit 5dd90d186d

View File

@@ -723,8 +723,11 @@ bool NukiNetwork::reconnect()
removeTopic(_maintenancePathPrefix, topic);
removeTopic(mqttLockPath, topic);
removeTopic(mqttOpenerPath, topic);
removeTopic(mqttOldOpenerPath, topic);
removeTopic(mqttOldOpenerPath2, topic);
if (len > 5)
{
removeTopic(mqttOldOpenerPath, topic);
removeTopic(mqttOldOpenerPath2, topic);
}
}
_preferences->putBool(preference_reset_mqtt_topics, false);