Skip to content
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

Unifiprotect CookieError: Invalid attribute 'partitioned' #131760

Closed
aurelmarius opened this issue Nov 27, 2024 · 2 comments · Fixed by #131764
Closed

Unifiprotect CookieError: Invalid attribute 'partitioned' #131760

aurelmarius opened this issue Nov 27, 2024 · 2 comments · Fixed by #131764

Comments

@aurelmarius
Copy link

The problem

Unifiprotect integration does not start in latest beta 2024.12.0b0

Error setting up entry Aurel Popesti for unifiprotect
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 640, in __async_setup_with_context
    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.13/site-packages/uiprotect/api.py", line 827, in update
    bootstrap = await self.get_bootstrap()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/uiprotect/api.py", line 1177, in get_bootstrap
    data = await self.api_request_obj("bootstrap")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/uiprotect/api.py", line 477, in api_request_obj
    data = await self.api_request(
           ^^^^^^^^^^^^^^^^^^^^^^^
    ...<5 lines>...
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/uiprotect/api.py", line 451, in api_request
    data = await self.api_request_raw(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<5 lines>...
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/uiprotect/api.py", line 393, in api_request_raw
    response = await self.request(
               ^^^^^^^^^^^^^^^^^^^
    ...<5 lines>...
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/uiprotect/api.py", line 329, in request
    await self.ensure_authenticated()
  File "/usr/local/lib/python3.13/site-packages/uiprotect/api.py", line 513, in ensure_authenticated
    await self._load_session()
  File "/usr/local/lib/python3.13/site-packages/uiprotect/api.py", line 602, in _load_session
    session_cookie = await self._read_auth_config()
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/uiprotect/api.py", line 635, in _read_auth_config
    cookie[cookie_name][key] = value
    ~~~~~~~~~~~~~~~~~~~^^^^^
  File "/usr/local/lib/python3.13/http/cookies.py", line 295, in __setitem__
    raise CookieError("Invalid attribute %r" % (K,))
http.cookies.CookieError: Invalid attribute 'partitioned'

What version of Home Assistant Core has the issue?

core-2024.12.0b0

What was the last working version of Home Assistant Core?

core-2024.11.3

What type of installation are you running?

Home Assistant Core

Integration causing the issue

Unifi Protect

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?

No response

Additional information

No response

@home-assistant
Copy link

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

Code owner commands

Code owners of unifiprotect 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 unifiprotect 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)


unifiprotect documentation
unifiprotect source
(message by IssueLinks)

@bdraco
Copy link
Member

bdraco commented Nov 27, 2024

uiprotect doesn't have python 3.13 compat yet
uilibs/uiprotect#274

@bdraco bdraco added this to the 2024.12.0 milestone Nov 27, 2024
@bdraco bdraco mentioned this issue Nov 27, 2024
19 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants