Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions imouapi/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,15 +539,15 @@ 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
api = "setDeviceSnapEnhanced"
# prepare the payload
payload = {
"deviceId": device_id,
"channelId": "0",
"channelId": channel_id,
}
# call the api
return await self._async_call_api(api, payload)
Expand Down