pyg90alarm 2.5.1__py3-none-any.whl → 2.5.3__py3-none-any.whl
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.
- pyg90alarm/local/host_config.py +1 -0
- pyg90alarm/local/net_config.py +16 -2
- {pyg90alarm-2.5.1.dist-info → pyg90alarm-2.5.3.dist-info}/METADATA +1 -1
- {pyg90alarm-2.5.1.dist-info → pyg90alarm-2.5.3.dist-info}/RECORD +7 -7
- {pyg90alarm-2.5.1.dist-info → pyg90alarm-2.5.3.dist-info}/WHEEL +1 -1
- {pyg90alarm-2.5.1.dist-info → pyg90alarm-2.5.3.dist-info}/licenses/LICENSE +0 -0
- {pyg90alarm-2.5.1.dist-info → pyg90alarm-2.5.3.dist-info}/top_level.txt +0 -0
pyg90alarm/local/host_config.py
CHANGED
pyg90alarm/local/net_config.py
CHANGED
|
@@ -73,7 +73,7 @@ class G90NetConfig(DataclassLoadSave):
|
|
|
73
73
|
# Access Point Name (APN) for GPRS connection, as provided by the cellular
|
|
74
74
|
# operator
|
|
75
75
|
apn_name: str = validated_string_field(
|
|
76
|
-
min_length=
|
|
76
|
+
min_length=0, max_length=100, trust_initial_value=True
|
|
77
77
|
)
|
|
78
78
|
# User name for APN authentication, as provided by the cellular operator
|
|
79
79
|
apn_user: str = validated_string_field(
|
|
@@ -132,8 +132,22 @@ class G90NetConfig(DataclassLoadSave):
|
|
|
132
132
|
def apn_auth(self) -> G90APNAuth:
|
|
133
133
|
"""
|
|
134
134
|
Returns the APN authentication method as an enum.
|
|
135
|
+
|
|
136
|
+
Some panels might send values outside of the defined enum range,
|
|
137
|
+
presumably when SIM card is absent. In such cases, returns
|
|
138
|
+
`G90APNAuth.NONE`.
|
|
139
|
+
|
|
140
|
+
No attempt is made to correct the invalid value in the underlying
|
|
141
|
+
data field, since the panel is trusted - unless the value is modified
|
|
142
|
+
and saved back to the device.
|
|
143
|
+
|
|
144
|
+
:return: APN authentication method, or G90APNAuth.NONE if the received
|
|
145
|
+
value is invalid.
|
|
135
146
|
"""
|
|
136
|
-
|
|
147
|
+
try:
|
|
148
|
+
return G90APNAuth(self._apn_auth)
|
|
149
|
+
except ValueError:
|
|
150
|
+
return G90APNAuth.NONE
|
|
137
151
|
|
|
138
152
|
@apn_auth.setter
|
|
139
153
|
def apn_auth(self, value: G90APNAuth) -> None:
|
|
@@ -31,10 +31,10 @@ pyg90alarm/local/base_cmd.py,sha256=f0PozHJjErIg08vn0sAacHbigJSFor8q5jdxfXiM27c,
|
|
|
31
31
|
pyg90alarm/local/config.py,sha256=QYetAc6QLrAN8T-37D4Esifvao52w_uJ01nHciLbGME,1390
|
|
32
32
|
pyg90alarm/local/discovery.py,sha256=8YVIXuNe57lhas0VSRf7QXZH83pEDGNj9oehNY4Kh2U,3576
|
|
33
33
|
pyg90alarm/local/history.py,sha256=sL6_Z1BNYkuUwAZUi78d4p5hhcCfsXKw29i4Qu1O60M,10811
|
|
34
|
-
pyg90alarm/local/host_config.py,sha256=
|
|
34
|
+
pyg90alarm/local/host_config.py,sha256=RSvg2UXPTCzzwDW6Iz3CyFtjxPUzSSdlxRMqGpWA61M,7445
|
|
35
35
|
pyg90alarm/local/host_info.py,sha256=4lFIaFEpYd3EvgNrDJmKijTrzX9i29nFISLLlXGnkmE,2759
|
|
36
36
|
pyg90alarm/local/host_status.py,sha256=WHGtw-A0wHILqVWP4DnZhXj8DPRGyS26AV0bL1isTz4,1863
|
|
37
|
-
pyg90alarm/local/net_config.py,sha256=
|
|
37
|
+
pyg90alarm/local/net_config.py,sha256=Y4-SUVSukk-h5x3LK-HH3IlM72dP_46nj1H8lN9rTfo,5998
|
|
38
38
|
pyg90alarm/local/notifications.py,sha256=Vs6NQJciYqDALV-WwzH6wIcTGdX_UD4XBuHWjSOpCDY,4591
|
|
39
39
|
pyg90alarm/local/paginated_cmd.py,sha256=5pPVP8f4ydjgu8Yq6MwqINJAUt52fFlD17wO4AI88Pc,4467
|
|
40
40
|
pyg90alarm/local/paginated_result.py,sha256=p_e8QAVznp1Q5Xi9ifjb9Bx-S3ZiAkVlPKrY6r0bYLs,5483
|
|
@@ -43,8 +43,8 @@ pyg90alarm/local/user_data_crc.py,sha256=JQBOPY3RlOgVtvR55R-rM8OuKjYW-BPXQ0W4pi6
|
|
|
43
43
|
pyg90alarm/notifications/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
44
44
|
pyg90alarm/notifications/base.py,sha256=d3N_zNPa_jcTX4QpA78jdgMHDhmrgwqyM3HdvuO14Jk,16682
|
|
45
45
|
pyg90alarm/notifications/protocol.py,sha256=TlZQ3P8-N-E2X5bzkGefz432x4lBYyIBF9VriwYn9ds,4790
|
|
46
|
-
pyg90alarm-2.5.
|
|
47
|
-
pyg90alarm-2.5.
|
|
48
|
-
pyg90alarm-2.5.
|
|
49
|
-
pyg90alarm-2.5.
|
|
50
|
-
pyg90alarm-2.5.
|
|
46
|
+
pyg90alarm-2.5.3.dist-info/licenses/LICENSE,sha256=f884inRbeNv-O-hbwz62Ro_1J8xiHRTnJ2cCx6A0WvU,1070
|
|
47
|
+
pyg90alarm-2.5.3.dist-info/METADATA,sha256=HLrqjT7wB9IQvmuGlmX7NkJo0nijovzOjaRWlm78ong,12568
|
|
48
|
+
pyg90alarm-2.5.3.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
49
|
+
pyg90alarm-2.5.3.dist-info/top_level.txt,sha256=czHiGxYMyTk5QEDTDb0EpPiKqUMRa8zI4zx58Ii409M,11
|
|
50
|
+
pyg90alarm-2.5.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|