pyimouapi 1.1.2__tar.gz → 1.1.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pyimouapi-1.1.2 → pyimouapi-1.1.3}/PKG-INFO +1 -1
- {pyimouapi-1.1.2 → pyimouapi-1.1.3}/pyimouapi/ha_device.py +9 -9
- {pyimouapi-1.1.2 → pyimouapi-1.1.3}/pyimouapi.egg-info/PKG-INFO +1 -1
- {pyimouapi-1.1.2 → pyimouapi-1.1.3}/setup.py +1 -1
- {pyimouapi-1.1.2 → pyimouapi-1.1.3}/LICENSE +0 -0
- {pyimouapi-1.1.2 → pyimouapi-1.1.3}/README.md +0 -0
- {pyimouapi-1.1.2 → pyimouapi-1.1.3}/pyimouapi/__init__.py +0 -0
- {pyimouapi-1.1.2 → pyimouapi-1.1.3}/pyimouapi/const.py +0 -0
- {pyimouapi-1.1.2 → pyimouapi-1.1.3}/pyimouapi/device.py +0 -0
- {pyimouapi-1.1.2 → pyimouapi-1.1.3}/pyimouapi/exceptions.py +0 -0
- {pyimouapi-1.1.2 → pyimouapi-1.1.3}/pyimouapi/openapi.py +0 -0
- {pyimouapi-1.1.2 → pyimouapi-1.1.3}/pyimouapi.egg-info/SOURCES.txt +0 -0
- {pyimouapi-1.1.2 → pyimouapi-1.1.3}/pyimouapi.egg-info/dependency_links.txt +0 -0
- {pyimouapi-1.1.2 → pyimouapi-1.1.3}/pyimouapi.egg-info/top_level.txt +0 -0
- {pyimouapi-1.1.2 → pyimouapi-1.1.3}/setup.cfg +0 -0
|
@@ -401,7 +401,7 @@ class ImouHaDeviceManager(object):
|
|
|
401
401
|
return imou_ha_device
|
|
402
402
|
|
|
403
403
|
async def async_press_button(
|
|
404
|
-
self, device: ImouHaDevice, button_type: str, duration: int,
|
|
404
|
+
self, device: ImouHaDevice, button_type: str, duration: int, ref_id: str = None
|
|
405
405
|
):
|
|
406
406
|
if PARAM_RESTART_DEVICE == button_type:
|
|
407
407
|
await self.delegate.async_restart_device(device.device_id)
|
|
@@ -412,14 +412,14 @@ class ImouHaDeviceManager(object):
|
|
|
412
412
|
BUTTON_TYPE_PARAM_VALUE[button_type],
|
|
413
413
|
duration,
|
|
414
414
|
)
|
|
415
|
-
elif
|
|
416
|
-
await self._async_press_button_by_ref(device,
|
|
415
|
+
elif ref_id is not None:
|
|
416
|
+
await self._async_press_button_by_ref(device, ref_id)
|
|
417
417
|
|
|
418
418
|
async def async_switch_operation(
|
|
419
|
-
self, device: ImouHaDevice, switch_type: str, enable: bool,
|
|
419
|
+
self, device: ImouHaDevice, switch_type: str, enable: bool, ref_id: str = None
|
|
420
420
|
):
|
|
421
|
-
if
|
|
422
|
-
await self._async_switch_operation_by_ref(device, switch_type, enable,
|
|
421
|
+
if ref_id is not None:
|
|
422
|
+
await self._async_switch_operation_by_ref(device, switch_type, enable, ref_id)
|
|
423
423
|
elif PARAM_MOTION_DETECT == switch_type:
|
|
424
424
|
await self.delegate.async_modify_device_alarm_status(
|
|
425
425
|
device.device_id, device.channel_id, enable
|
|
@@ -439,10 +439,10 @@ class ImouHaDeviceManager(object):
|
|
|
439
439
|
raise result[0]
|
|
440
440
|
|
|
441
441
|
async def async_select_option(
|
|
442
|
-
self, device: ImouHaDevice, select_type: str, option: str,
|
|
442
|
+
self, device: ImouHaDevice, select_type: str, option: str, ref_id: str = None
|
|
443
443
|
):
|
|
444
|
-
if
|
|
445
|
-
await self._async_select_option_by_ref(device, option,
|
|
444
|
+
if ref_id is not None:
|
|
445
|
+
await self._async_select_option_by_ref(device, option, ref_id)
|
|
446
446
|
if PARAM_NIGHT_VISION_MODE == select_type:
|
|
447
447
|
await self.delegate.async_set_device_night_vision_mode(
|
|
448
448
|
device.device_id, device.channel_id, option
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|