Prettier
This commit is contained in:
parent
1f59d9cd9a
commit
d4166db9ab
2 changed files with 3 additions and 2 deletions
2
dmx.py
2
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):
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue