Refactor LED control UI to Vue3
This commit is contained in:
@@ -128,9 +128,19 @@ class CommandRecord(BaseModel):
|
||||
apply_at_ms: int
|
||||
created_at_ms: int = Field(default_factory=epoch_ms)
|
||||
expires_at_ms: int
|
||||
released_at_ms: int | None = None
|
||||
payload: dict[str, Any] = Field(default_factory=dict)
|
||||
acks: list[dict[str, Any]] = Field(default_factory=list)
|
||||
|
||||
@property
|
||||
def prepared(self) -> bool:
|
||||
prepared_tiles = {
|
||||
ack.get("tile_id")
|
||||
for ack in self.acks
|
||||
if ack.get("status") in {AckStatus.PREPARED, AckStatus.COMMITTED}
|
||||
}
|
||||
return set(self.target_tiles).issubset({str(tile) for tile in prepared_tiles if tile})
|
||||
|
||||
@property
|
||||
def complete(self) -> bool:
|
||||
completed = {
|
||||
|
||||
Reference in New Issue
Block a user