Skip to content

Workday Integration failing since last update #144811

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

Open
mrbluebrett opened this issue May 13, 2025 · 1 comment
Open

Workday Integration failing since last update #144811

mrbluebrett opened this issue May 13, 2025 · 1 comment

Comments

@mrbluebrett
Copy link

The problem

Workday integration has stopped working.

What version of Home Assistant Core has the issue?

2025.5.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Workday

Link to integration documentation on our website

https://www.home-assistant.io/integrations/workday

Diagnostics information

Entries are not correctly loaded.

Example YAML snippet

Anything in the logs that might be useful for us?

In the error log I see:
`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 "/usr/src/homeassistant/homeassistant/components/workday/__init__.py", line 82, in async_setup_entry
    await _async_validate_country_and_province(hass, entry, country, province)
  File "/usr/src/homeassistant/homeassistant/components/workday/__init__.py", line 31, in _async_validate_country_and_province
    await hass.async_add_import_executor_job(country_holidays, country)
  File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.13/site-packages/holidays/utils.py", line 191, in country_holidays
    Append custom holiday dates by passing one of:
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<8 lines>...
    
    ^^^^^
  File "/usr/local/lib/python3.13/site-packages/holidays/registry.py", line 234, in __call__
    self.module_name = ".".join(entity_path[0:-1])
          ^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/holidays/registry.py", line 255, in get_entity
    def get_entity(self) -> Optional[HolidayBase]:
                                      ^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/util/loop.py", line 201, in protected_loop_func
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.13/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1310, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 1026, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/usr/local/lib/python3.13/site-packages/holidays/countries/__init__.py", line 15, in <module>
    from .afghanistan import Afghanistan, AF, AFG
  File "/usr/local/lib/python3.13/site-packages/holidays/countries/afghanistan.py", line 31, in <module>
    from holidays.groups import InternationalHolidays, IslamicHolidays, PersianCalendarHolidays
  File "/usr/local/lib/python3.13/site-packages/holidays/groups/__init__.py", line 17, in <module>
    from holidays.groups.chinese import ChineseCalendarHolidays
  File "/usr/local/lib/python3.13/site-packages/holidays/groups/chinese.py", line 16, in <module>
    from holidays.calendars.chinese import _ChineseLunisolar, CHINESE_CALENDAR
ImportError: cannot import name 'CHINESE_CALENDAR' from 'holidays.calendars.chinese' (/usr/local/lib/python3.13/site-packages/holidays/calendars/chinese.py)`

Additional information

No response

@home-assistant
Copy link

Hey there @fabaff, @gjohansson-ST, mind taking a look at this issue as it has been labeled with an integration (workday) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of workday can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign workday Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


workday documentation
workday source
(message by IssueLinks)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants