Unexpected exception
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/dacite/types.py", line 22, in extract_origin_collection
return collection.extra
^^^^^^^^^^^^^^^^^^^^
AttributeError: 'types.UnionType' object has no attribute 'extra'. Did you mean: 'str'?
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/roborock/containers.py", line 110, in from_dict
return from_dict(cls, decamelize_obj(data, ignore_keys), config=Config(cast=[Enum]))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/dacite/core.py", line 64, in from_dict
value = build_value(type=field_type, data=field_data, config=config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/dacite/core.py", line 101, in build_value
if is_subclass(type, cast_type):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/dacite/types.py", line 168, in is_subclass
if is_generic_collection(sub_type):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/dacite/types.py", line 147, in is_generic_collection
origin = extract_origin_collection(type_)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/dacite/types.py", line 24, in extract_origin_collection
return collection.origin
^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'types.UnionType' object has no attribute 'origin'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/roborock/config_flow.py", line 109, in async_step_code
login_data = await self._client.code_login(code)
^