From ece752d643f2941bb2f62064c3761abe691cc107 Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 27 Apr 2022 23:13:19 +0200 Subject: [PATCH] Fixed dictionary access --- src/philips_hue_counter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/philips_hue_counter.py b/src/philips_hue_counter.py index 64e52f8..a71810e 100644 --- a/src/philips_hue_counter.py +++ b/src/philips_hue_counter.py @@ -83,7 +83,7 @@ def get_scene_for_time(time: time) -> string: break # Only breaks if it could not find a valid scene, so use lates scene as fallback - return SCHEDULE.values()[-1] + return list(SCHEDULE.values())[-1] def change_cb(countChange: int, directionState: Dict):