From: Scott Gasch Date: Sun, 7 Jan 2024 19:15:31 +0000 (-0800) Subject: This globals thing is a POS X-Git-Url: https://wannabe.guru.org/gitweb/?p=kiosk.git;a=commitdiff_plain;h=b821981cf3468e2e8d6c9c51c7ef40a46b0f3fc5 This globals thing is a POS --- diff --git a/ratago_trigger.py b/ratago_trigger.py index a0fc310..a54573c 100644 --- a/ratago_trigger.py +++ b/ratago_trigger.py @@ -8,7 +8,7 @@ from typing import List, Optional, Tuple class ratago_trigger(trigger.trigger): def get_triggered_page_list(self) -> Optional[List[Tuple[str, int]]]: - if globals.get("ratago_triggered", False): + if globals.get("ratago_triggered"): print("****** MyQ garage door is open page trigger ******") return [(kiosk_constants.ratago_pagename, trigger.trigger.PRIORITY_HIGH)] else: