-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Workday: unexpected repairs after upgrading to 2024.9.3 #126688
Comments
Hey there @fabaff, @gjohansson-ST, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) workday documentation |
You need to provide your full config (how the config entry was setup) to be able to provide some feedback on why you see this repairs. |
Thanks. I have an idea why it's raising repairs as we're not loading dates for such long into the future. I will give it a test in the upcoming days and see what I can figure out 👍 |
Hmm. No, there was bump of the package in between. I need to check. |
So I took a look at this and while I found out we need to expand the check into the future years, there is not really a problem here as the dates you have provided above are no holiday dates and therefore obviously it can't remove them. I guess there is something you want to achieve with that date and maybe it's better if you provide me with your use-case and I can guide you. (datetime.date(2025, 1, 1), 'Neujahr')
(datetime.date(2025, 4, 18), 'Karfreitag')
(datetime.date(2025, 4, 21), 'Ostermontag')
(datetime.date(2025, 5, 1), 'Erster Mai')
(datetime.date(2025, 5, 29), 'Christi Himmelfahrt')
(datetime.date(2025, 6, 9), 'Pfingstmontag')
(datetime.date(2025, 10, 3), 'Tag der Deutschen Einheit')
(datetime.date(2025, 12, 25), 'Erster Weihnachtstag')
(datetime.date(2025, 12, 26), 'Zweiter Weihnachtstag')
(datetime.date(2025, 1, 6), 'Heilige Drei Könige')
(datetime.date(2025, 6, 19), 'Fronleichnam')
(datetime.date(2025, 11, 1), 'Allerheiligen') |
Hmm, Little background for 15th of August: (https://en.wikipedia.org/wiki/Assumption_of_Mary) I've just tried to reproduce it with an empty 2024.9.2 instance: I've created two running the action: workday.check_date
target:
entity_id:
- binary_sensor.workday_basic
- binary_sensor.workday_w_o_15th_august
data:
check_date: "2025-08-15" result: binary_sensor.workday_basic:
workday: false
binary_sensor.workday_w_o_15th_august:
workday: true Same config after upgrade to result: binary_sensor.workday_w_o_15th_august:
workday: true
binary_sensor.workday_basic:
workday: true IMO, that looks more like an issue with python I've just tried it with 2 venvs #!/bin/bash
source ./holiday_0.56/bin/activate
python3 holidays-script.py
deactivate
source ./holiday_0.57/bin/activate
python3 holidays-script.py
deactivate holidays-script.py: import holidays
print("holidays version:", holidays.__version__)
bavaria = holidays.country_holidays('DE', subdiv='BY', years=2025)
for x in bavaria:
print(x) output:
And indeed, in Guess i gonna create a new issue then on the library repo (https://github.com/vacanza/python-holidays) Thank you for the help! |
Thanks. Great investigation. There's also a "question" in the PR which might be worth "answering" in the issue you're creating. |
Forgot that categories are indeed implemented so in the last option for categories if you select |
The problem
Seems to be the same issue (#108095) maybe?
Getting a lot of repair prompts like
Configured named holiday 2025-08-15 for Workday Sensor does not exist.
Screenshot of the original issue are quite the same on my End here in the current version
What version of Home Assistant Core has the issue?
core-2024.9.3
What was the last working version of Home Assistant Core?
core-2024.9.2
What type of installation are you running?
Home Assistant Container
Integration causing the issue
workday
Link to integration documentation on our website
https://www.home-assistant.io/integrations/workday
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
No response
The text was updated successfully, but these errors were encountered: