Skip to content

Commit 7a30700

Browse files
agnersmarcelveldt
andauthored
Apply suggestions from code review
Co-authored-by: Marcel van der Veldt <marcel.vanderveldt@nabucasa.com>
1 parent 7e7537b commit 7a30700

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

matter_server/client/client.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ async def check_node_update(self, node_id: int) -> MatterSoftwareVersion | None:
519519
520520
The "softwareVersionString" is a human friendly version string.
521521
"""
522-
data = await self.send_command(APICommand.CHECK_NODE_UPDATE, node_id=node_id)
522+
data = await self.send_command(APICommand.CHECK_NODE_UPDATE, node_id=node_id, require_schema=10)
523523
if data is None:
524524
return None
525525

@@ -532,7 +532,10 @@ async def update_node(
532532
) -> None:
533533
"""Start node update to a particular version."""
534534
await self.send_command(
535-
APICommand.UPDATE_NODE, node_id=node_id, software_version=software_version
535+
APICommand.UPDATE_NODE,
536+
node_id=node_id,
537+
software_version=software_version,
538+
require_schema=10
536539
)
537540

538541
def _prepare_message(

matter_server/server/ota/provider.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,8 @@ async def start_update(
212212
ota_provider_node_id,
213213
)
214214

215-
# Notify update node about the availability of the OTA Provider. It will query
216-
# the OTA provider and start the update.
215+
# Notify update node about the availability of the OTA Provider.
216+
# It will query the OTA provider and start the update.
217217
try:
218218
await chip_device_controller.send_command(
219219
node_id,

0 commit comments

Comments
 (0)