Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions src/arduino/app_tools/module_listing.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def __init__(
fs_path: str,
model_name: str,
category: str = "miscellaneous",
require_devices: bool = False,
mount_devices_into_container: bool = False,
requires_display: str = None,
required_device_classes: List[str] = None,
env_variables: Dict[str, str] = None,
Expand All @@ -60,7 +60,7 @@ def __init__(
self.model_name: str = model_name
self.require_model: bool = model_name != ""
self.category = category
self.require_devices: bool = require_devices
self.mount_devices_into_container: bool = mount_devices_into_container
self.requires_display: Optional[str] = requires_display
self.required_device_classes: Optional[List[str]] = required_device_classes
self.env_variables: Optional[Dict[str, str]] = env_variables
Expand All @@ -72,8 +72,7 @@ def to_dict(self) -> dict:
"description": self.brick_description,
"require_container": self.require_container,
"require_model": self.require_model,
"require_devices": self.require_devices, # Keep for backward compatibility. To be removed in future versions.
"mount_devices_into_container": self.require_devices,
"mount_devices_into_container": self.mount_devices_into_container,
"ports": self.ports,
"category": self.category,
}
Expand Down