Skip to content

Commit 43ff4d6

Browse files
committed
migrate logic
1 parent 581ea8b commit 43ff4d6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

api/src/opentrons/system/camera.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,10 @@ def parse_stream_configuration_file_data(data: bytes) -> Dict[str, str] | None:
245245
)
246246
# We don't want to write bad or incomplete data to the file
247247
return None
248+
249+
# Migrate old camera default file data to new uniform default
250+
if contents[StreamConfigurationKeys.SOURCE] == "NONE":
251+
contents[StreamConfigurationKeys.SOURCE] = DEFAULT_SYSTEM_CAMERA
248252
return contents
249253

250254

0 commit comments

Comments
 (0)