Make thing state mutable within the method

This commit is contained in:
jaknapper 2025-10-21 16:52:52 +01:00 committed by Julian Stirling
parent e0ce40607b
commit f8ee71b9c0

View file

@ -1097,6 +1097,6 @@ class StreamingPiCamera2(BaseCamera):
@property @property
def thing_state(self) -> Mapping[str, Any]: def thing_state(self) -> Mapping[str, Any]:
"""Update generic camera metadata with Picamera-specific data.""" """Update generic camera metadata with Picamera-specific data."""
state = super().thing_state state = dict(super().thing_state)
state["camera_board"] = self._camera_board state["camera_board"] = self._camera_board
return state return state