diff --git a/custom_components/yasno_outages/api.py b/custom_components/yasno_outages/api.py index 9b68b7d..f4fbfb2 100644 --- a/custom_components/yasno_outages/api.py +++ b/custom_components/yasno_outages/api.py @@ -118,6 +118,10 @@ def get_events( if ( start_date <= event_start <= end_date or start_date <= event_end <= end_date + # Include events that intersect beyond the timeframe + # See: https://github.com/denysdovhan/ha-yasno-outages/issues/14 + or event_start <= start_date <= event_end + or event_start <= end_date <= event_end ): events.append( {