core: Workday sensor Installation is not working
The problem
When I upgraded from 2023.4.6 with the workday integration, I deleted the yaml since it was imported. After this, I deleted the integration. Once I wanted to re-install it, I was greeted with an “Unknown error”. No matter which country I add, the same problem remains. The logs mention that 'Canada' object has no attribute 'subdivisions'
.
What version of Home Assistant Core has the issue?
core-2023.5.4 core-2023.6.0
What was the last working version of Home Assistant Core?
core-2023.4.6
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
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Logger: aiohttp.server
Source: components/workday/config_flow.py:56
First occurred: 10:28:46 PM (2 occurrences)
Last logged: 10:28:49 PM
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 227, 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 180, in post
return await super().post(request, flow_id)
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 110, in post
result = await self._flow_mgr.async_configure(flow_id, data)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 271, in async_configure
result = await self._async_handle_step(
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 187, in async_step_user
return await self.async_step_options()
File "/usr/src/homeassistant/homeassistant/components/workday/config_flow.py", line 233, in async_step_options
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: 'Canada' object has no attribute 'subdivisions'
Additional information
No response
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 21 (11 by maintainers)
Very good @maxistviews I will close this
I mean any custom component that might be using the holidays package. If you’re unsure you can take diagnostics from any integration and paste the section about custom components here.
There’s this in
.storage/core.device_registry
for me…Nothing else matches
workday
or either of the hashes (7e707e0b2ec74b08c963d044a2f54a0f
/6614fa1a2fb3cbf0c6551fc45a3e6749
) in my.storage
…Maybe I’ll try deleting it, restarting and seeing what happens.
EDIT: Deleted and restarted, still too many country codes and the same error