Updated lint, updated config validation

This commit is contained in:
Alexander Werner 2018-11-26 15:50:09 +01:00
parent aed1c798d1
commit 6aa304b24e
2 changed files with 5 additions and 1 deletions

View File

@ -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():
"""

View File

@ -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