#!/usr/bin/env python3
-from typing import Optional, Tuple
+from typing import List, Optional, Tuple
-import constants
+import kiosk_constants as constants
import globals
import trigger
class gcal_trigger(trigger.trigger):
- def get_triggered_page_list(self) -> Optional[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