diff --git a/imouapi/api.py b/imouapi/api.py index d004b02..31fb6d1 100644 --- a/imouapi/api.py +++ b/imouapi/api.py @@ -539,7 +539,7 @@ async def async_api_controlMovePTZ( # pylint: disable=invalid-name # call the api return await self._async_call_api(api, payload) - async def async_api_setDeviceSnapEnhanced(self, device_id: str) -> dict: # pylint: disable=invalid-name + async def async_api_setDeviceSnapEnhanced(self, device_id: str, channel_id: str = "0") -> dict: # pylint: disable=invalid-name """Capture pictures, supports the capture frequency of 1 time per second. \ (https://open.imoulife.com/book/en/http/device/operate/setDeviceSnapEnhanced.html).""" # define the api endpoint @@ -547,7 +547,7 @@ async def async_api_setDeviceSnapEnhanced(self, device_id: str) -> dict: # pyli # prepare the payload payload = { "deviceId": device_id, - "channelId": "0", + "channelId": channel_id, } # call the api return await self._async_call_api(api, payload)