ref: update status values
This commit is contained in:
+1
-1
@@ -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
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user