From ece357e799a5e15b74c8989d56f867351aa3c3d3 Mon Sep 17 00:00:00 2001 From: Pierre Date: Wed, 13 May 2026 19:48:59 +0200 Subject: [PATCH] fix event type heuristic to works with french --- apps/alarmclock.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/alarmclock.py b/apps/alarmclock.py index fa1ce9d..bf7d3ac 100644 --- a/apps/alarmclock.py +++ b/apps/alarmclock.py @@ -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