diff --git a/victron_ble/cli.py b/victron_ble/cli.py index 13d868e..29306a7 100644 --- a/victron_ble/cli.py +++ b/victron_ble/cli.py @@ -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 : pair", param, ctx) + self.fail(f"{value} is not a valid @ pair", param, ctx) @click.group()