Fix issue with fetching serial number (closes #35)

pull/50/head 1.0.11
Daniel Chesterton 3 years ago
parent 2886e5c1ca
commit 594a42320f

@ -149,7 +149,12 @@ try:
is_ad110 = device_type == "AD110"
is_ad410 = device_type == "AD410"
is_doorbell = is_ad110 or is_ad410
serial_number = camera.serial_number.strip()
serial_number = camera.serial_number
if not isinstance(serial_number, str):
log(f"Error fetching serial number", level="ERROR")
exit_gracefully(1)
sw_version = camera.software_information[0].replace("version=", "").strip()
device_name = camera.machine_name.replace("name=", "").strip()
device_slug = slugify(device_name, separator="_")

Loading…
Cancel
Save