pyimouapi 1.1.1__tar.gz → 1.1.2__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.1
3
+ Version: 1.1.2
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
@@ -127,24 +127,24 @@ SWITCH_TYPE_ABILITY = {
127
127
  "header_detect": ["HeaderDetect", "AiHuman", "SMDH"],
128
128
  }
129
129
  SWITCH_TYPE_REF = {
130
- "motion_detect": [{"ref": "14800", "default": 0, "type": "properties"}],
131
- "close_camera": [{"ref": "13100", "default": 0, "type": "properties"}],
132
- "white_light": [{"ref": "19700", "default": 0, "type": "properties"}],
130
+ "motion_detect": [{"ref": "14800", "default": False, "type": "properties"}],
131
+ "close_camera": [{"ref": "13100", "default": False, "type": "properties"}],
132
+ "white_light": [{"ref": "19700", "default": False, "type": "properties"}],
133
133
  "ab_alarm_sound": [
134
- {"ref": "14200", "default": 0, "type": "properties"},
135
- {"ref": "115300", "default": 0, "type": "properties"},
134
+ {"ref": "14200", "default": False, "type": "properties"},
135
+ {"ref": "115300", "default": False, "type": "properties"},
136
136
  ],
137
137
  "audio_encode_control": [
138
- {"ref": "13900", "default": 0, "type": "properties"},
139
- {"ref": "111900", "default": 0, "type": "properties"},
140
- {"ref": "103800", "default": 0, "type": "properties"},
138
+ {"ref": "13900", "default": False, "type": "properties"},
139
+ {"ref": "111900", "default": False, "type": "properties"},
140
+ {"ref": "103800", "default": False, "type": "properties"},
141
141
  ],
142
142
  "header_detect": [
143
- {"ref": "17100", "default": 0, "type": "properties"},
144
- {"ref": "17900", "default": 0, "type": "properties"},
145
- {"ref": "108900", "default": 0, "type": "properties"},
143
+ {"ref": "17100", "default": False, "type": "properties"},
144
+ {"ref": "17900", "default": False, "type": "properties"},
145
+ {"ref": "108900", "default": False, "type": "properties"},
146
146
  ],
147
- "light": [{"ref": "11400", "default": 0, "type": "properties"}],
147
+ "light": [{"ref": "11400", "default": False, "type": "properties"}],
148
148
  }
149
149
  # Required capacity for various button types
150
150
  BUTTON_TYPE_ABILITY = {
@@ -208,7 +208,7 @@ SELECT_TYPE_REF = {
208
208
  "mode": [
209
209
  {
210
210
  "ref": "15200",
211
- "default": 0,
211
+ "default": "0",
212
212
  "type": "properties",
213
213
  "options": ["0", "1", "2"],
214
214
  }
@@ -216,7 +216,7 @@ SELECT_TYPE_REF = {
216
216
  "device_volume": [
217
217
  {
218
218
  "ref": "15400",
219
- "default": 0,
219
+ "default": "0",
220
220
  "type": "properties",
221
221
  "options": ["-1", "0", "1", "2"],
222
222
  }
@@ -251,7 +251,7 @@ BINARY_SENSOR_TYPE_REF = {
251
251
  {
252
252
  "ref": "16300",
253
253
  "type": "properties",
254
- "default": 1,
254
+ "default": False,
255
255
  }
256
256
  ]
257
257
  }
@@ -453,7 +453,6 @@ class ImouHaDeviceManager(object):
453
453
  ) -> bool:
454
454
  # Updating the interface requires capturing exceptions for two main purposes:
455
455
  # 1. To prevent the updater from failing to load due to exceptions;
456
- # 2. To set default values
457
456
  try:
458
457
  data = await self.delegate.async_get_device_status(
459
458
  device.device_id, device.channel_id, ability_type
@@ -795,7 +794,7 @@ class ImouHaDeviceManager(object):
795
794
  ref, properties, services, imou_ha_device.product_id
796
795
  ):
797
796
  imou_ha_device.switches[switch_type] = {
798
- PARAM_STATE: ref[PARAM_DEFAULT] == 1,
797
+ PARAM_STATE: ref[PARAM_DEFAULT],
799
798
  PARAM_REF: ref[PARAM_REF],
800
799
  }
801
800
  break
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyimouapi
3
- Version: 1.1.1
3
+ Version: 1.1.2
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.1",
5
+ version="1.1.2",
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