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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyimouapi
3
- Version: 1.1.2
3
+ Version: 1.1.3
4
4
  Summary: A package for imou open api
5
5
  Home-page: https://github.com/Imou-OpenPlatform/Py-Imou-Open-Api
6
6
  Author: Imou-OpenPlatform
@@ -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, ref: str = None
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 ref is not None:
416
- await self._async_press_button_by_ref(device, ref)
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, ref: str = None
419
+ self, device: ImouHaDevice, switch_type: str, enable: bool, ref_id: str = None
420
420
  ):
421
- if ref is not None:
422
- await self._async_switch_operation_by_ref(device, switch_type, enable, ref)
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, ref: str = None
442
+ self, device: ImouHaDevice, select_type: str, option: str, ref_id: str = None
443
443
  ):
444
- if ref is not None:
445
- await self._async_select_option_by_ref(device, option, ref)
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyimouapi
3
- Version: 1.1.2
3
+ Version: 1.1.3
4
4
  Summary: A package for imou open api
5
5
  Home-page: https://github.com/Imou-OpenPlatform/Py-Imou-Open-Api
6
6
  Author: Imou-OpenPlatform
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="pyimouapi",
5
- version="1.1.2",
5
+ version="1.1.3",
6
6
  packages=find_packages(),
7
7
  description="A package for imou open api",
8
8
  # long_description=open('README.md').read(),
File without changes
File without changes
File without changes
File without changes
File without changes