From fbaa204b73810a2b9cec0921061b73ade16a2f4e Mon Sep 17 00:00:00 2001 From: Michael Lee Date: Fri, 12 Apr 2024 16:01:14 -0400 Subject: [PATCH] use correct clear() method --- models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/models.py b/models.py index 4a6825b..21c855b 100644 --- a/models.py +++ b/models.py @@ -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 @@ -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,