From d4166db9abb7e0745c10d6564d59fac48f1ebe05 Mon Sep 17 00:00:00 2001 From: Stefan Bethke Date: Fri, 22 Jul 2022 17:56:53 +0200 Subject: [PATCH] Prettier --- dmx.py | 2 +- foobaz.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dmx.py b/dmx.py index 23130e3..984ad19 100644 --- a/dmx.py +++ b/dmx.py @@ -94,7 +94,7 @@ class RotatingRainbow: return rgb def __str__(self): - return "{type(self).__name__}" + return f"{type(self).__name__}" class Chase(Steady): diff --git a/foobaz.py b/foobaz.py index f7cd36c..ebdc450 100644 --- a/foobaz.py +++ b/foobaz.py @@ -34,12 +34,13 @@ def update(state): dmx.start() return {'result': 'ok'} + def main(args): global dmx parser = argparse.ArgumentParser(prog='foobazdmx', description='Make the lights flicker.') parser.add_argument('-a', '--artnet', type=str, required=True, help="Art-Net server") - parser.add_argument('-r', '--room', type=str, required=True, help="light setup for room") + parser.add_argument('-r', '--room', type=str, required=True, help="light setup for room: shop or big") args = parser.parse_args(args) artnet = args.artnet