fd256696446dbe5c60e0d6ae96abbda317b325fe
[kiosk.git] / myq_trigger.py
1 #!/usr/bin/env python3
2
3 import constants
4 import globals
5 import trigger
6 from typing import List, Optional, Tuple
7
8
9 class myq_trigger(trigger.trigger):
10     def get_triggered_page_list(self) -> Optional[List[Tuple[str, int]]]:
11         if globals.get("myq_triggered"):
12             print("****** MyQ garage door is open page trigger ******")
13             return [(constants.myq_pagename, trigger.trigger.PRIORITY_HIGH)]
14         else:
15             return None