Workday add_holidays not functioning

I’ve had a workday binary_sensor configured, but the add_holidays portion never seems to work.

For example, my binary_sensor config is:

- platform: workday
  name: "Work Days"
  country: US
  workdays: [mon, tue, wed, thu, fri]
  excludes: [sat, sun]
  add_holidays:
    - '2020-11-06'

However, binary_sensor.work_days is set to ‘on’ on 2020-11-06. I double-checked via developer tools that timezones and whatnot appear correct:

{{ now() }}
{{ now().tzinfo }}
{{ now().astimezone() }}
{{ now().astimezone().tzinfo }}
2020-11-06 07:53:00.002945-06:00
America/Chicago
2020-11-06 07:53:00.003782-06:00
CST

Am I just missing something obvious? Running HassOS 4.15 on an Intel NUC if that’s helpful.

The docs are quite confusing, but if I understood it correctly, you need to change your exclude to this:

exclude: [sat, sun, holiday]

Ah! Appears that was the problem.

Thank you for your help!

I was looking this topic up as well - I see what @Burningstone pointed out, and it looks like that was also my problem. We’ll see later this week as I’ve schedule a couple extra days off this week and included in my [now] ‘exclude:’ clause.

This should be cleared up on the Workday sensor repo page as it certainly gives the impression that ‘exclude:’ is specified plural.