Skip to content

Commit

Permalink
disable canteen calendar after first error
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrfilipmarek committed Dec 17, 2024
1 parent dcea12a commit 2ec4b0d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/homeassistantedupage/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit 2ec4b0d

Please sign in to comment.