       const char *hostname = settings[KEY_HOSTNAME];
       if (os_strcmp(cfg.hostname, hostname) != 0) {
         os_strcpy(cfg.hostname, hostname);
-        cfg.mqtt_ha_is_discovered = false; // Re-register the device via MQTT HASS Autodiscovery
+        cfg.mqtt_ha_is_discovered =
+            false; // Re-register the device via MQTT HASS Autodiscovery
         needRestart = true;
       }
     }

      if (os_strcmp(cfg.mqtt_lwt_topic, mqtt_lwt_topic) != 0) {
        os_strcpy(cfg.mqtt_lwt_topic, mqtt_lwt_topic);
        mqtt_changed = true;
        cfg.mqtt_ha_is_discovered = false; // Re-register the device via MQTT HASS Autodiscovery
      }
    }


  }

  if (root.containsKey(KEY_COLOR)) {
    AiLight->setColor(root[KEY_COLOR][KEY_COLOR_R],
                      root[KEY_COLOR][KEY_COLOR_G],
                      root[KEY_COLOR][KEY_COLOR_B]);
  }

  if (root.containsKey(KEY_WHITE)) {
