Skip to content

Commit

Permalink
fix: support Google Wifi Online value as active
Browse files Browse the repository at this point in the history
  • Loading branch information
brunosabot committed Oct 2, 2024
1 parent f883ffd commit ad6d2c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tools/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ export function isEntityType(context, entityType) {
}

export function isStateOn(context, entity = context.config.entity) {
const state = getState(context, entity);
const state = getState(context, entity).toLowerCase();
const numericState = Number(state);
const activeStringStates = [
'on',
Expand All @@ -407,6 +407,7 @@ export function isStateOn(context, entity = context.config.entity) {
'running',
'active',
'connected',
'online',
'mowing',
'starting',
'heat',
Expand Down

0 comments on commit ad6d2c9

Please sign in to comment.