Skip to content

Commit 4faf285

Browse files
Use casefold() for case-insensitive comparison in event summary matching
1 parent 4cf95a7 commit 4faf285

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

custom_components/calendar_event/binary_sensor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,8 @@ async def _update_state(self) -> None:
196196

197197
def _matches_criteria(self, event_summary: str) -> bool:
198198
"""Check if event summary matches the configured criteria."""
199-
event_summary_lower = event_summary.lower()
200-
summary_lower = self._summary.lower()
199+
event_summary_lower = event_summary.casefold()
200+
summary_lower = self._summary.casefold()
201201

202202
if self._comparison_method == "contains":
203203
return summary_lower in event_summary_lower

0 commit comments

Comments
 (0)