ref: update status values

This commit is contained in:
leukipp
2025-02-23 22:31:31 +01:00
parent e7622bef17
commit e2397bad65
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ const init = async () => {
HARDWARE.display.brightness.max = getDisplayBrightnessMax(); HARDWARE.display.brightness.max = getDisplayBrightnessMax();
HARDWARE.support.keyboardVisibility = processRuns("squeekboard"); HARDWARE.support.keyboardVisibility = processRuns("squeekboard");
HARDWARE.initialized = true; HARDWARE.initialized = true;
HARDWARE.status = "valid"; HARDWARE.status = "Supported";
// Show supported features // Show supported features
console.log(`Supported: ${JSON.stringify(HARDWARE.support, null, 2)}`); console.log(`Supported: ${JSON.stringify(HARDWARE.support, null, 2)}`);
+2 -2
View File
@@ -80,11 +80,11 @@ const init = async () => {
// Integration initialized // Integration initialized
INTEGRATION.initialized = true; INTEGRATION.initialized = true;
INTEGRATION.status = "online"; INTEGRATION.status = "Online";
}) })
.on("error", (error) => { .on("error", (error) => {
console.error("MQTT:", error); console.error("MQTT:", error);
INTEGRATION.status = "offline"; INTEGRATION.status = "Offline";
}); });
// Update sensor states from notifiers // Update sensor states from notifiers