partofthething/next-holiday-sensor

Feature Request: Support for Categories

badewanne1234 opened this issue · 1 comments

Hi

The python-holiday library has additional categories which are listed for many countries, for example the "BANK" holiday category. (https://github.com/vacanza/python-holidays?tab=readme-ov-file#available-countries)

However, it does not seem to be supported by this integration at this stage. From what I can tell, only "PUBLIC" is supported. It would be of great help if the additional categories can also be supported.

Thank you

I just found this is already possible with the kwargs option.

Here is an example with two categories:

  - platform: next_holiday
    min_future_holidays: 3
    sources: 
     - country: "Belgium"
       observed: false
       kwargs:
         categories: 'public'
     - country: "Belgium"
       observed: false
       kwargs:
         categories: 'bank'