Skip to content

Commit

Permalink
Null is off
Browse files Browse the repository at this point in the history
  • Loading branch information
bergie committed May 30, 2024
1 parent 25c4ac4 commit 3e0e813
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 3e0e813

Please sign in to comment.