Fix override of state write in camera base entity (#166626)

This commit is contained in:
Erik Montnemery
2026-03-26 22:00:25 +01:00
committed by GitHub
parent 8e5daeb7dd
commit d76272d74a
+2 -2
View File
@@ -760,12 +760,12 @@ class Camera(Entity, cached_properties=CACHED_PROPERTIES_WITH_ATTR_):
return CameraCapabilities(frontend_stream_types)
@callback
def async_write_ha_state(self) -> None:
def _async_write_ha_state(self) -> None:
"""Write the state to the state machine.
Schedules async_refresh_providers if support of streams have changed.
"""
super().async_write_ha_state()
super()._async_write_ha_state()
if self.__supports_stream != (
supports_stream := self.supported_features & CameraEntityFeature.STREAM
):