Prelim fix for wrong db path generation

This commit is contained in:
Sebastian Lenzlinger 2024-07-17 11:13:06 +02:00
parent 97d0238cc2
commit ae93234eb6

View File

@ -120,8 +120,8 @@ def add_device_guided(cfg, device, db):
@click.command('add-device', help='Add a device to a database')
@click.argument('device', type=str, default="")
@click.option('--db', '--database', type=click.Path(exists=True, file_okay=False, dir_okay=True),
envvar='IOTTB_DB', show_envvar=True,
@click.option('--db', '--database', type=str,
envvar='IOTTB_DB', show_envvar=True, default="",
help='Database in which to add this device. If not specified use default from config.')
@click.option('--guided', is_flag=True,
help='Add device interactively')