Skip to content

Commit d4fbe1d

Browse files
fix: ensure start datetime is converted to UTC in binary sensor
1 parent a0f408a commit d4fbe1d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

custom_components/calendar_event/binary_sensor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ async def _get_event_matching_summary(self) -> dict | None:
250250
start_dt = dt_util.parse_datetime(start)
251251
if start_dt is None:
252252
continue
253+
start_dt = dt_util.as_utc(start_dt)
253254
except (ValueError, TypeError):
254255
continue
255256
if start_dt <= utcnow():

0 commit comments

Comments
 (0)