mirror of
https://github.com/home-assistant/core.git
synced 2025-08-16 02:51:40 +02:00
Fix turning amcrest camera on and off (#68050)
This commit is contained in:
committed by
Paulus Schoutsen
parent
a285478cf8
commit
a42ba9e10a
@@ -548,7 +548,7 @@ class AmcrestCam(Camera):
|
|||||||
# recording on if video stream is being turned off.
|
# recording on if video stream is being turned off.
|
||||||
if self.is_recording and not enable:
|
if self.is_recording and not enable:
|
||||||
await self._async_enable_recording(False)
|
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:
|
if self._control_light:
|
||||||
await self._async_change_light()
|
await self._async_change_light()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user