fix event type heuristic to works with french

This commit is contained in:
2026-05-13 19:48:59 +02:00
parent c9d65b29fd
commit ece357e799

View File

@@ -105,9 +105,9 @@ class AlarmClock(SmartObject):
for component in calendar_ubi.walk():
if component.name == "VEVENT":
event_summary = component.get('summary')
if event_summary == "Away": event_type = EventType.Vacation
elif event_summary == "Busy": event_type = EventType.Busy
elif event_summary == "Tentative": event_type = EventType.Tentative
if event_summary == "Away" or event_summary == "Absent(e)": event_type = EventType.Vacation
elif event_summary == "Busy" or event_summary == "Occupé(e)": event_type = EventType.Busy
elif event_summary == "Tentative" or event_summary == "Provisoire": event_type = EventType.Tentative
elif event_summary == "Working elsewhere" or event_summary == "Free": event_type = EventType.Flex
else: event_type = None