From 2bcc99a89306a319de2662347d5550a859554a7c Mon Sep 17 00:00:00 2001 From: Maximilian Giller Date: Sun, 3 Mar 2024 16:17:57 +0100 Subject: [PATCH] sanity check for pattern parser --- src/handler/matrix_display.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handler/matrix_display.py b/src/handler/matrix_display.py index 429f77f..db79cf6 100644 --- a/src/handler/matrix_display.py +++ b/src/handler/matrix_display.py @@ -70,7 +70,7 @@ class MatrixDisplay: async def pattern(self, pattern: str = "0,1", off_ms: int = 500, on_ms: int = 500): # Parse - pattern_steps = [step.strip() == "1" for step in pattern.split(",")] + pattern_steps = [step.strip() == "1" for step in pattern.split(",") if step] # Execute for step in pattern_steps: if step: