Skip to content

Commit

Permalink
AttributeError: 'Holidays' object has no attribute '_language' #56
Browse files Browse the repository at this point in the history
  • Loading branch information
bruxy70 committed Nov 6, 2023
1 parent 85932ab commit 70a83f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/holidays/calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class Holidays(CalendarEntity, RestoreEntity):
"_hidden",
"_country",
"_holiday_subdiv",
"_language",
"_holiday_observed",
"_holiday_pop_named",
"_holidays",
Expand Down Expand Up @@ -67,6 +68,7 @@ def __init__(self, config_entry: ConfigEntry) -> None:
self._hidden = config.get(ATTR_HIDDEN, False)
self._country = config.get(const.CONF_COUNTRY, "")
self._holiday_subdiv = config.get(const.CONF_SUBDIV, "")
self._language = config.get(const.CONF_LANGUAGES, "")
self._holiday_observed = config.get(const.CONF_OBSERVED, True)
self._holiday_pop_named = config.get(const.CONF_HOLIDAY_POP_NAMED)
self._holidays: list[date] = []
Expand Down

0 comments on commit 70a83f0

Please sign in to comment.