From 5a1642ab32d2914fc28b9a70ac70dedbe9280d8a Mon Sep 17 00:00:00 2001 From: Griatch Date: Tue, 26 Jun 2012 01:40:52 +0200 Subject: [PATCH] Small fix to seasonal rotation in extended room contrib. --- contrib/extended_room.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/extended_room.py b/contrib/extended_room.py index c141f9c9d3..926f34f7cb 100644 --- a/contrib/extended_room.py +++ b/contrib/extended_room.py @@ -118,7 +118,7 @@ class ExtendedRoom(Room): # figure out which slots these represent if SEASONAL_BOUNDARIES[0] <= season < SEASONAL_BOUNDARIES[1]: curr_season = "spring" elif SEASONAL_BOUNDARIES[1] <= season < SEASONAL_BOUNDARIES[2]: curr_season = "summer" - elif SEASONAL_BOUNDARIES[2] <= season < SEASONAL_BOUNDARIES[3]: curr_season = "autumn" + elif SEASONAL_BOUNDARIES[2] <= season < 1.0 + SEASONAL_BOUNDARIES[0]: curr_season = "autumn" else: curr_season = "winter" if DAY_BOUNDARIES[0] <= timeslot < DAY_BOUNDARIES[1]: curr_timeslot = "night"