fix republishh auto discovery on reconnect
This commit is contained in:
@@ -163,7 +163,7 @@ void NukiWrapper::update()
|
||||
{
|
||||
_nextConfigUpdateTs = ts + _intervalConfig * 1000;
|
||||
updateConfig();
|
||||
if(_hassEnabled)
|
||||
if(_hassEnabled && !_hassSetupCompleted)
|
||||
{
|
||||
setupHASS();
|
||||
}
|
||||
@@ -642,7 +642,7 @@ void NukiWrapper::readAdvancedConfig()
|
||||
|
||||
void NukiWrapper::setupHASS()
|
||||
{
|
||||
if(!_nukiConfigValid || _hassSetupCompleted) return;
|
||||
if(!_nukiConfigValid) return;
|
||||
|
||||
String baseTopic = _preferences->getString(preference_mqtt_lock_path);
|
||||
char uidString[20];
|
||||
|
||||
Reference in New Issue
Block a user