From 3e0e813838016e21d2214d01840911f7822a7427 Mon Sep 17 00:00:00 2001 From: Henri Bergius Date: Thu, 30 May 2024 20:53:40 +0100 Subject: [PATCH] Null is off --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 12c0836..3927990 100644 --- a/index.js +++ b/index.js @@ -67,7 +67,7 @@ module.exports = (app) => { } setState('stopped'); } else if (v.path === modePath && options.use_chargingmode) { - if (v.value === 'off') { + if (v.value === 'off' || v.value === null) { setState('stopped'); return; }