feat: 完善 N7 智能座舱交互与控制链路
This commit is contained in:
@@ -384,6 +384,10 @@ class ModeProfile:
|
||||
)
|
||||
|
||||
def public_dict(self) -> dict[str, Any]:
|
||||
is_cyclic = self.timeline is not None or any(
|
||||
operation.capability == "seat.start_dynamic_mode"
|
||||
for operation in self.operations
|
||||
)
|
||||
result = {
|
||||
"id": self.id,
|
||||
"name": self.name,
|
||||
@@ -396,7 +400,7 @@ class ModeProfile:
|
||||
"common": self.common,
|
||||
"vehicle_ids": list(self.vehicle_ids),
|
||||
},
|
||||
"behavior": "cyclic" if self.timeline is not None else "static",
|
||||
"behavior": "cyclic" if is_cyclic else "static",
|
||||
"origin": "user" if self.user_defined else "preset",
|
||||
"deletable": self.user_defined,
|
||||
"instruction": self.instruction,
|
||||
|
||||
Reference in New Issue
Block a user