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.
- {pyimouapi-1.1.1 → pyimouapi-1.1.2}/PKG-INFO +1 -1
- {pyimouapi-1.1.1 → pyimouapi-1.1.2}/pyimouapi/const.py +15 -15
- {pyimouapi-1.1.1 → pyimouapi-1.1.2}/pyimouapi/ha_device.py +1 -2
- {pyimouapi-1.1.1 → pyimouapi-1.1.2}/pyimouapi.egg-info/PKG-INFO +1 -1
- {pyimouapi-1.1.1 → pyimouapi-1.1.2}/setup.py +1 -1
- {pyimouapi-1.1.1 → pyimouapi-1.1.2}/LICENSE +0 -0
- {pyimouapi-1.1.1 → pyimouapi-1.1.2}/README.md +0 -0
- {pyimouapi-1.1.1 → pyimouapi-1.1.2}/pyimouapi/__init__.py +0 -0
- {pyimouapi-1.1.1 → pyimouapi-1.1.2}/pyimouapi/device.py +0 -0
- {pyimouapi-1.1.1 → pyimouapi-1.1.2}/pyimouapi/exceptions.py +0 -0
- {pyimouapi-1.1.1 → pyimouapi-1.1.2}/pyimouapi/openapi.py +0 -0
- {pyimouapi-1.1.1 → pyimouapi-1.1.2}/pyimouapi.egg-info/SOURCES.txt +0 -0
- {pyimouapi-1.1.1 → pyimouapi-1.1.2}/pyimouapi.egg-info/dependency_links.txt +0 -0
- {pyimouapi-1.1.1 → pyimouapi-1.1.2}/pyimouapi.egg-info/top_level.txt +0 -0
- {pyimouapi-1.1.1 → pyimouapi-1.1.2}/setup.cfg +0 -0
|
@@ -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":
|
|
131
|
-
"close_camera": [{"ref": "13100", "default":
|
|
132
|
-
"white_light": [{"ref": "19700", "default":
|
|
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":
|
|
135
|
-
{"ref": "115300", "default":
|
|
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":
|
|
139
|
-
{"ref": "111900", "default":
|
|
140
|
-
{"ref": "103800", "default":
|
|
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":
|
|
144
|
-
{"ref": "17900", "default":
|
|
145
|
-
{"ref": "108900", "default":
|
|
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":
|
|
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":
|
|
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]
|
|
797
|
+
PARAM_STATE: ref[PARAM_DEFAULT],
|
|
799
798
|
PARAM_REF: ref[PARAM_REF],
|
|
800
799
|
}
|
|
801
800
|
break
|
|
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
|