From f9a2b341a9111d191440ee61b812f5cc5a43f276 Mon Sep 17 00:00:00 2001 From: Rob Berwick Date: Sun, 17 Nov 2024 12:41:35 +0000 Subject: [PATCH] fix: Default serial param to empty string When doing `find_by_serial`, default the `serial` param to an empty string, not None. --- src/blinkstick/blinkstick.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/blinkstick/blinkstick.py b/src/blinkstick/blinkstick.py index a236a6e..bb80731 100644 --- a/src/blinkstick/blinkstick.py +++ b/src/blinkstick/blinkstick.py @@ -1439,7 +1439,8 @@ def find_first() -> BlinkStick | None: return None -def find_by_serial(serial: str | None = None) -> BlinkStick | None: + +def find_by_serial(serial: str = "") -> BlinkStick | None: """ Find BlinkStick backend based on serial number.