-
-
Notifications
You must be signed in to change notification settings - Fork 36.3k
Closed
uilibs/uiprotect
#661Description
The problem
When I enable privacy mode (In my use case using a simple script) for a camera, this warning is logged:
Logger: py.warnings
Source: components/unifiprotect/switch.py:544
First occurred: 10:49:45 (2 occurrences)
Last logged: 10:57:36
/usr/local/lib/python3.13/site-packages/pydantic/main.py:463: UserWarning: Pydantic serializer warnings: PydanticSerializationUnexpectedValue(Expected `str` - serialized value may not be as expected [input_value=390, input_type=int]) return self.__pydantic_serializer__.to_python(
/usr/local/lib/python3.13/site-packages/pydantic/main.py:463: UserWarning: Pydantic serializer warnings: PydanticSerializationUnexpectedValue(Expected `str` - serialized value may not be as expected [input_value=100, input_type=int]) PydanticSerializationUnexpectedValue(Expected `str` - serialized value may not be as expected [input_value=433, input_type=int]) return self.__pydantic_serializer__.to_python(
What version of Home Assistant Core has the issue?
core-2025.9.4
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
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
alias: Camera - Turn on Privacy Mode
sequence:
- action: input_boolean.turn_off
target:
entity_id:
- input_boolean.camera_s_aan_uit
data: {}
- action: switch.turn_on
metadata: {}
data: {}
target:
entity_id:
- switch.studio_privacy_mode
- switch.camera_studio_privacy_mode
mode: single
icon: mdi:cctv-off
description: ""Anything in the logs that might be useful for us?
Additional information
This log warning is not new or specific for this version, it has been around since I use the script.