Skip to content

Commit 74bfa66

Browse files
authored
Fix OTA URL check syntax (#834)
1 parent e1442e5 commit 74bfa66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

matter_server/server/device_controller.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1024,7 +1024,7 @@ async def _check_node_update(
10241024
node_logger.info("No new update found.")
10251025
return None, None
10261026

1027-
if "otaUrl" not in update or update["otaUrl"].strip().length == 0:
1027+
if "otaUrl" not in update or update["otaUrl"].strip() == "":
10281028
raise UpdateCheckError("Update found, but no OTA URL provided.")
10291029

10301030
node_logger.info(

0 commit comments

Comments
 (0)