Update main.py

master
Ebbe Baß 2021-11-08 21:40:16 +01:00
parent aca7f9b4b2
commit 8d6e11fa00
1 changed files with 3 additions and 3 deletions

View File

@ -70,13 +70,13 @@ if __name__ == '__main__':
strip.begin()
if not os.path.exists('./config.ini'):
config[''] = {'led_power': True, 'timer': True, 'start_time': '06:00', 'stop_time': '22:00'}
config['testing'] = {'led_power': True, 'timer': True, 'start_time': '06:00', 'stop_time': '22:00'}
write_file()
led_power = config.get('', 'led_power')
led_power = config.get('testing', 'led_power')
else:
led_power = config.get('', 'led_power')
led_power = config.get('testing', 'led_power')
try:
while True: