Very Initial MVP

There is so much more to do, but I think it is time to commit this to VCS
This commit is contained in:
2024-11-30 03:27:32 -08:00
parent c1a3c73c1d
commit c78ced85ca
35 changed files with 1184 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
from enum import Enum
class AlertCategory(Enum):
HIGH = 1
LOW = 2
CUSTOM = 3
@staticmethod
def from_str(category: str): # It gets mad when I use the Type[AlertCategory] as a type hint
match category:
case "high_alert_button":
return AlertCategory.HIGH
case "low_alert_button":
return AlertCategory.LOW
case "sp_add_button":
return AlertCategory.CUSTOM
case _:
return AlertCategory[category.upper()]