Skip to content

Commit

Permalink
Fix OTA URL check syntax (#834)
Browse files Browse the repository at this point in the history
  • Loading branch information
agners committed Jul 23, 2024
1 parent e1442e5 commit 74bfa66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion matter_server/server/device_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -1024,7 +1024,7 @@ async def _check_node_update(
node_logger.info("No new update found.")
return None, None

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

node_logger.info(
Expand Down

0 comments on commit 74bfa66

Please sign in to comment.