X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=gcal_trigger.py;h=36e46e62e81a11ea2ab356dc4139201d5b187cca;hb=7eae23537dcc61565a24d5c957d4325b7337b63a;hp=b7da3b2c2ce5a8b9dea43837bfa85a03ee447073;hpb=c06bfef53f70551e7920bc4facce27f47b89e2ba;p=kiosk.git diff --git a/gcal_trigger.py b/gcal_trigger.py index b7da3b2..36e46e6 100644 --- a/gcal_trigger.py +++ b/gcal_trigger.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -from typing import Tuple +from typing import List, Optional, Tuple import constants import globals @@ -8,10 +8,10 @@ import trigger class gcal_trigger(trigger.trigger): - def get_triggered_page_list(self) -> Tuple[str, int]: + def get_triggered_page_list(self) -> Optional[List[Tuple[str, int]]]: if globals.get("gcal_triggered"): print("****** gcal has an imminent upcoming event. ******") - return (constants.gcal_imminent_pagename, trigger.trigger.PRIORITY_HIGH) + return [(constants.gcal_imminent_pagename, trigger.trigger.PRIORITY_HIGH)] else: return None