Skip to content

Commit

Permalink
Switch to @ delimiter to fix #1
Browse files Browse the repository at this point in the history
  • Loading branch information
keshavdv committed Dec 24, 2022
1 parent a7c1dfc commit 35d7426
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions victron_ble/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ class DeviceKeyParam(click.ParamType):

def convert(self, value, param, ctx):
if isinstance(value, str):
parts = value.split(":")
parts = value.split("@")
if len(parts) == 2:
addr = parts[0].strip()
key = parts[1].strip()
return (addr, key)

self.fail(f"{value} is not a valid <addr>:<key> pair", param, ctx)
self.fail(f"{value} is not a valid <addr>@<key> pair", param, ctx)


@click.group()
Expand Down

0 comments on commit 35d7426

Please sign in to comment.