Skip to content

Commit

Permalink
fix dict key error
Browse files Browse the repository at this point in the history
  • Loading branch information
michaellee1019 committed Apr 12, 2024
1 parent cd18bc1 commit 101126b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async def do_command(
drawings = command.get("drawings")
with canvas(self.device) as draw:
for drawing in drawings:
match drawing.type:
match drawing["type"]:
case "border":
self.border(draw)

Expand Down

0 comments on commit 101126b

Please sign in to comment.