fix event type heuristic to works with french
This commit is contained in:
@@ -105,9 +105,9 @@ class AlarmClock(SmartObject):
|
|||||||
for component in calendar_ubi.walk():
|
for component in calendar_ubi.walk():
|
||||||
if component.name == "VEVENT":
|
if component.name == "VEVENT":
|
||||||
event_summary = component.get('summary')
|
event_summary = component.get('summary')
|
||||||
if event_summary == "Away": event_type = EventType.Vacation
|
if event_summary == "Away" or event_summary == "Absent(e)": event_type = EventType.Vacation
|
||||||
elif event_summary == "Busy": event_type = EventType.Busy
|
elif event_summary == "Busy" or event_summary == "Occupé(e)": event_type = EventType.Busy
|
||||||
elif event_summary == "Tentative": event_type = EventType.Tentative
|
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
|
elif event_summary == "Working elsewhere" or event_summary == "Free": event_type = EventType.Flex
|
||||||
else: event_type = None
|
else: event_type = None
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user