diff --git a/src/layouts/home-assistant.ts b/src/layouts/home-assistant.ts index 1ec55ca9aa..42abe399ce 100644 --- a/src/layouts/home-assistant.ts +++ b/src/layouts/home-assistant.ts @@ -183,7 +183,7 @@ export class HomeAssistantAppEl extends QuickBarMixin(HassElement) { this._hiddenTimeout = undefined; // setTimeout can be delayed in the background and only fire // when we switch to the tab or app again (Hey Android!) - if (!document.hidden) { + if (document.hidden) { this._suspendApp(); } }, 300000);