Skip to content

Commit

Permalink
fix: Default serial param to empty string
Browse files Browse the repository at this point in the history
When doing `find_by_serial`, default the `serial` param to an empty string, not None.
  • Loading branch information
robberwick committed Nov 17, 2024
1 parent 02a363c commit 9b622b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/blinkstick/blinkstick.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 9b622b5

Please sign in to comment.