Adjusted comment

This commit is contained in:
Indu Prakash
2023-01-03 19:25:21 -06:00
parent 65b9f7f4be
commit 255ac9cee8

View File

@@ -2557,8 +2557,8 @@ int http_fn_cfg_pins(http_request_t* request) {
//CFG_Save_SetupTimer();
CFG_Save_IfThereArePendingChanges();
//Invoke Hass discovery if configuration has changed
if(!bSafeMode && CFG_HasFlag(OBK_FLAG_AUTOMAIC_HASS_DISCOVERY)) {
// Invoke Hass discovery if configuration has changed and not in safe mode.
if (!bSafeMode && CFG_HasFlag(OBK_FLAG_AUTOMAIC_HASS_DISCOVERY)) {
Main_ScheduleHomeAssistantDiscovery(1);
}