From 6aa304b24e272dd5ed33f58f73d342e080daa1d7 Mon Sep 17 00:00:00 2001 From: Alexander Werner Date: Mon, 26 Nov 2018 15:50:09 +0100 Subject: [PATCH] Updated lint, updated config validation --- carom/cli.py | 4 ++++ carom/config.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/carom/cli.py b/carom/cli.py index d892d30..60df687 100644 --- a/carom/cli.py +++ b/carom/cli.py @@ -15,6 +15,7 @@ click_log.basic_config(root_logger) def cli(): pass + @cli.command() def get_gpio(): """ @@ -22,6 +23,7 @@ def get_gpio(): """ pass + @cli.command() def get_uuid(): """ @@ -29,6 +31,7 @@ def get_uuid(): """ click.echo(uuid.uuid5(uuid.NAMESPACE_DNS, str(uuid.getnode()))) + @cli.command() def run(): """ @@ -36,6 +39,7 @@ def run(): """ pass + @cli.command() def check_config(): """ diff --git a/carom/config.py b/carom/config.py index 6153e62..5caef44 100644 --- a/carom/config.py +++ b/carom/config.py @@ -19,7 +19,7 @@ _schema = Schema({ 'token': str, }, 'mapping': { - All(Coerce(int), Range(0, 28)): All(Coerce(int), Range(1, 8)), + All(Coerce(int), Range(1, 8)): All(Coerce(int), Range(0, 28)), }, 'logging': { 'file': str