   if (cfg.api) {
 
     // 'Light' API Endpoint
-    server->on(HTTP_APIROUTE_LIGHT, HTTP_GET,
-               [](AsyncWebServerRequest *request) {
-                 // Check for appropriate HTTP method
-                 if (request->method() != HTTP_GET) {
-                   AsyncWebServerResponse *response =
-                       request->beginResponse(405, HTTP_MIMETYPE_JSON);
-                   response->addHeader(HTTP_HEADER_SERVER, SERVER_SIGNATURE);
-                   response->addHeader(HTTP_HEADER_ALLOW, HTTP_HEADER_ALLOW_GET_PATCH);
-                   request->send(response);
-
-                   return;
-                 }
-
-                 if (!authorizeAPI(request)) {
-                   return;
-                 }
-
-                 // Send response
-                 DynamicJsonBuffer jsonBuffer;
-                 JsonObject &root = jsonBuffer.createObject();
-                 createStateJSON(root);
-
-                 char buffer[root.measureLength() + 1];
-                 root.printTo(buffer, sizeof(buffer));
-
-                 AsyncWebServerResponse *response =
-                     request->beginResponse(200, HTTP_MIMETYPE_JSON, buffer);
-                 response->addHeader(HTTP_HEADER_SERVER, SERVER_SIGNATURE);
-                 request->send(response);
-               });
+    server->on(
+        HTTP_APIROUTE_LIGHT, HTTP_GET, [](AsyncWebServerRequest *request) {
+          // Check for appropriate HTTP method
+          if (request->method() != HTTP_GET) {
+            AsyncWebServerResponse *response =
+                request->beginResponse(405, HTTP_MIMETYPE_JSON);
+            response->addHeader(HTTP_HEADER_SERVER, SERVER_SIGNATURE);
+            response->addHeader(HTTP_HEADER_ALLOW, HTTP_HEADER_ALLOW_GET_PATCH);
+            request->send(response);
+
+            return;
+          }
+
+          if (!authorizeAPI(request)) {
+            return;
+          }
+
+          // Send response
+          DynamicJsonBuffer jsonBuffer;
+          JsonObject &root = jsonBuffer.createObject();
+          createStateJSON(root);
+
+          char buffer[root.measureLength() + 1];
+          root.printTo(buffer, sizeof(buffer));
+
+          AsyncWebServerResponse *response =
+              request->beginResponse(200, HTTP_MIMETYPE_JSON, buffer);
+          response->addHeader(HTTP_HEADER_SERVER, SERVER_SIGNATURE);
+          request->send(response);
+        });
 
     // 'About' API Endpoint
-    server->on(HTTP_APIROUTE_ABOUT, HTTP_ANY,
-               [](AsyncWebServerRequest *request) {
-                 // Only allow HTTP_GET method
-                 if (request->method() != HTTP_GET) {
-                   AsyncWebServerResponse *response =
-                       request->beginResponse(405, HTTP_MIMETYPE_JSON);
-                   response->addHeader(HTTP_HEADER_SERVER, SERVER_SIGNATURE);
-                   response->addHeader(HTTP_HEADER_ALLOW, HTTP_HEADER_ALLOW_GET);
-                   request->send(response);
-
-                   return;
-                 }
-
-                 if (!authorizeAPI(request)) {
-                   return;
-                 }
-
-                 DynamicJsonBuffer jsonBuffer;
-                 JsonObject &root = jsonBuffer.createObject();
-                 createAboutJSON(root);
-
-                 AsyncResponseStream *response =
-                     request->beginResponseStream(HTTP_MIMETYPE_JSON);
-                 response->addHeader(HTTP_HEADER_SERVER, SERVER_SIGNATURE);
-                 root.printTo(*response);
-
-                 request->send(response);
-               });
+    server->on(
+        HTTP_APIROUTE_ABOUT, HTTP_ANY, [](AsyncWebServerRequest *request) {
+          // Only allow HTTP_GET method
+          if (request->method() != HTTP_GET) {
+            AsyncWebServerResponse *response =
+                request->beginResponse(405, HTTP_MIMETYPE_JSON);
+            response->addHeader(HTTP_HEADER_SERVER, SERVER_SIGNATURE);
+            response->addHeader(HTTP_HEADER_ALLOW, HTTP_HEADER_ALLOW_GET);
+            request->send(response);
+
+            return;
+          }
+
+          if (!authorizeAPI(request)) {
+            return;
+          }
+
+          DynamicJsonBuffer jsonBuffer;
+          JsonObject &root = jsonBuffer.createObject();
+          createAboutJSON(root);
+
+          AsyncResponseStream *response =
+              request->beginResponseStream(HTTP_MIMETYPE_JSON);
+          response->addHeader(HTTP_HEADER_SERVER, SERVER_SIGNATURE);
+          root.printTo(*response);
+
+          request->send(response);
+        });
   }
 
   // Handle unknown URI

      uint8_t powerup_mode = (os_strlen(settings[KEY_POWERUP_MODE]) > 0)
                                 ? settings[KEY_POWERUP_MODE]
                                 : POWERUP_MODE;
      if (cfg.powerup_mode != powerup_mode) {
        cfg.powerup_mode = powerup_mode;
      }
    }

    // Reconnect to the MQTT broker due to new settings

  }

  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)) {
