The issue is described here: home-assistant/core#112298
- Use either SSH to connect to your Homeassistant instance or use the Addon "Advanced SSH & Web Terminal" in unprotected mode.
- run
docker exec -it homeassistant bash
- inside the container run
vi /usr/local/lib/python3.12/site-packages/pyunifiprotect/data/types.py
- use / to search and then enter "DELETE", hit enter to go to the correct line.
- Add below the line DELETE_MEDIA = "deletemedia"
- Hit ESC and type
:w
to save the file. - Hit ESC and type
:x
to close the editor - Type exit to exit the container
- Enter
docker restart homeassistant
to restart the homeassistant container. - After this, Unfi should work again.
Please note that this is only a temporary fix. I do not know if it will break future updates or if it is persistent after a system reboot. This "guide" is only what I did to resolve the issue.