Holidays Integration

For anyone using the existing Holidays integration here https://github.com/bruxy70/Holidays, I have forked this and fixed up the current issues. You can access the new version here:

[ifflanb/Holidays: :date: Custom Home Assistant integration for public holidays

1 Like

Hi

Not sure why you forked an integration that is pointless now that holidays calendar are native in HA ?
Also forking without updating any documentation is not great, it still indicates it’s deprecated :confused:

Vincèn

Forking to fix the issues for this integration that the garbage day integration rely on is important. Since no one in the community (including the original developer) wants to create the solution with the integrated HA offerings. Garbage Day was simple, low maintenance and perfect. The solutions out there are complex and cumbersome. Also, there is no real instructions surrounding how to reproduce Garbage Day without a ton in manual intervention.

Thank you for forking and fixing these issues.

Have to be honest, I use it just for the list of public holidays so not sure whether the garbage day part is fixed?

Not sure that the HA holidays integration offers the same functionality. I looked but couldnt see it. I use the full list of public holidays rather than just the next forthcoming holiday.

Unfortunately the main Garbage Collection fork is broken again. Boo!

Whats the error message in your logs?

This fork provides the fixes for the other HA updates: GitHub - cjramseyer/Garbage-Collection: 🗑 Custom Home Assistant sensor for scheduling garbage collection (or other regularly re-occurring events - weekly on given days, semi-weekly or monthly)

Logger: homeassistant.config_entries
Source: config_entries.py:749
First occurred: 2:15:07 PM (1 occurrence)
Last logged: 2:15:07 PM

Error setting up entry .test for garbage_collection
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 749, in __async_setup_with_context
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/config/custom_components/garbage_collection/init.py”, line 230, in async_setup_entry
hass.config_entries.async_forward_entry_setup(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: ‘ConfigEntries’ object has no attribute ‘async_forward_entry_setup’. Did you mean: ‘async_forward_entry_setups’?

Ok so the garbage collection is a separate integration. Looks like a similar issue to the one I fixed in the holidays integration though. I believe you need too edit the file at /config/custom_components/garbage_collection/init .py”, line 230 and change this:

“hass.config_entries.async_forward_entry_setup(
config_entry, const.SENSOR_PLATFORM
)”

with this

“hass.config_entries.async_forward_entry_setups(
config_entry, {const.SENSOR_PLATFORM}
)”

OK I did fix this with your update. Thank you!

1 Like