We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c552d03 + 637efac commit f1cf58fCopy full SHA for f1cf58f
custom_components/dahua/__init__.py
@@ -184,6 +184,12 @@ async def _async_update_data(self):
184
data.update(response)
185
186
device_type = data.get("deviceType", None)
187
+ # Lorex NVRs return deviceType=31, but the model is in the updateSerial
188
+ # /cgi-bin/magicBox.cgi?action=getSystemInfo"
189
+ # deviceType=31
190
+ # processor=ST7108
191
+ # serialNumber=ND0219110NNNNN
192
+ # updateSerial=DHI-NVR4108HS-8P-4KS2
193
if device_type in ["IP Camera", "31"] or device_type is None:
194
# Some firmwares put the device type in the "updateSerial" field. Weird.
195
device_type = data.get("updateSerial", None)
0 commit comments