From 2ec4b0d1f8ba129a6626cd47e4d6830adc2a0c39 Mon Sep 17 00:00:00 2001 From: Filip Marek Date: Tue, 17 Dec 2024 19:11:35 +0100 Subject: [PATCH] disable canteen calendar after first error --- custom_components/homeassistantedupage/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/custom_components/homeassistantedupage/__init__.py b/custom_components/homeassistantedupage/__init__.py index 7214860..a291bb9 100644 --- a/custom_components/homeassistantedupage/__init__.py +++ b/custom_components/homeassistantedupage/__init__.py @@ -104,6 +104,7 @@ async def fetch_data(): _LOGGER.error(f"Failed to fetch lunch data for {current_date}: {e}") lunch = None canteen_calendar_enabled = False + break meals_to_add = [] if lunch is not None and lunch.menus is not None and len(lunch.menus) > 0: _LOGGER.debug(f"Lunch for {current_date}: {lunch}")