Error setting up entry UDMP for unifiprotect
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 594, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/unifiprotect/__init__.py", line 75, in async_setup_entry
await protect.update()
File "/usr/local/lib/python3.12/site-packages/uiprotect/api.py", line 826, in update
bootstrap = await self.get_bootstrap()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/uiprotect/api.py", line 1176, in get_bootstrap
data = await self.api_request_obj("bootstrap")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/uiprotect/api.py", line 476, in api_request_obj
data = await self.api_request(
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/uiprotect/api.py", line 450, in api_request
data = await self.api_request_raw(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/uiprotect/api.py", line 392, in api_request_raw
response = await self.request(
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/uiprotect/api.py", line 328, in request
await self.ensure_authenticated()
File "/usr/local/lib/python3.12/site-packages/uiprotect/api.py", line 512, in ensure_authenticated
await self._load_session()
File "/usr/local/lib/python3.12/site-packages/uiprotect/api.py", line 601, in _load_session
session_cookie = await self._read_auth_config()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/uiprotect/api.py", line 610, in _read_auth_config
async with aiofiles.open(self.config_file, "rb") as f:
^^^^^^^^^^^^^
AttributeError: module 'aiofiles' has no attribute 'open'
The problem
Unable to start to Unifi Protect intégration after the upgrade to 2024.10.0
What version of Home Assistant Core has the issue?
core-2024.10.0
What was the last working version of Home Assistant Core?
core-2024.9.3
What type of installation are you running?
Home Assistant OS
Integration causing the issue
unifiprotect
Link to integration documentation on our website
https://www.home-assistant.io/integrations/unifiprotect
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
No response