Skip to content

Commit

Permalink
use correct clear() method
Browse files Browse the repository at this point in the history
  • Loading branch information
michaellee1019 committed Apr 12, 2024
1 parent 825365e commit fbaa204
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions models.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ async def do_command(
width = drawing.get("width")
self.line(draw, pixels, width)
case "clear":
self.clear(draw)
self.clear()
result["drawings"] = True
return result

Expand All @@ -89,8 +89,8 @@ def line(self, draw, pixels: list[int], width):
width=1
draw.line(pixels, fill="white", width=width)

def clear(self, draw):
draw.clear()
def clear(self):
self.device.clear()

def reconfigure(self,
config: ComponentConfig,
Expand Down

0 comments on commit fbaa204

Please sign in to comment.