Fix turning amcrest camera on and off (#68050)

This commit is contained in:
Sean Vig 2022-03-12 13:42:28 -05:00 committed by GitHub
parent de31e576b7
commit 6124081ddc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -548,7 +548,7 @@ class AmcrestCam(Camera):
# recording on if video stream is being turned off.
if self.is_recording and not enable:
await self._async_enable_recording(False)
await self._async_change_setting(enable, "video", "is_streaming")
await self._async_change_setting(enable, "video", "_attr_is_streaming")
if self._control_light:
await self._async_change_light()