From 8d6e11fa00f4d035544c29668af9e7585016a6a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Mon, 8 Nov 2021 21:40:16 +0100 Subject: [PATCH] Update main.py --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 060667e..e74a918 100644 --- a/main.py +++ b/main.py @@ -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: