After the update, I got a message saying that I didn’t need the Workday config on YAML. I checked the new Workday Integration and it seemed to be working fine, with all the settings seemingly imported.
Canada, Ontario
I then decided to remove the Workday config from YAML and after restarting, the Workday integration does not work, I get the following on the logs:
Logger: homeassistant.setup
Source: setup.py:348
First occurred: 7:15:32 AM (1 occurrences)
Last logged: 7:15:32 AM
Unable to prepare setup for platform workday.binary_sensor: Platform not found (cannot import name 'DateLike' from 'holidays' (/usr/local/lib/python3.10/site-packages/holidays/__init__.py)).
I removed the Workday integration, I forgot to copy the error it was displaying but it was a 500 Internal server error.
I then attempted to add it again, selected “Canada” and pressed Submit, and this cryptic message is displayed:
I went to the logs and saw this new entry:
Logger: aiohttp.server
Source: components/workday/config_flow.py:56
First occurred: 7:18:59 AM (5 occurrences)
Last logged: 11:10:52 AM
Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 433, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 85, in security_filter_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 80, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 235, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 146, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 218, in post
return await super().post(request)
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 72, in wrapper
result = await method(view, request, data, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 71, in post
result = await self._flow_mgr.async_init(
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 243, in async_init
result = await self._async_handle_step(flow, flow.init_step, data)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 367, in _async_handle_step
result: FlowResult = await getattr(flow, method)(user_input)
File "/usr/src/homeassistant/homeassistant/components/workday/config_flow.py", line 284, in async_step_init
schema: vol.Schema = await self.hass.async_add_executor_job(
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/workday/config_flow.py", line 56, in add_province_to_schema
if not obj_holidays.subdivisions:
AttributeError: 'CA' object has no attribute 'subdivisions'
It seems the integration is failing to display the list of subdivisions for me to select, thus failing.