Statemaschine fix

This commit is contained in:
Dirk Alders 2020-12-23 18:41:37 +01:00
parent 1bbf088ffa
commit 2c8cbf567e

View File

@ -199,6 +199,7 @@ class state_machine_day_state(state_machine.state_machine):
(CONDITION_IDLE, 1, STATE_IDLE), (CONDITION_IDLE, 1, STATE_IDLE),
), ),
STATE_SUNRISE: ( STATE_SUNRISE: (
(CONDITION_SLEEP, 1, STATE_SLEEP),
(CONDITION_SUNSET, 1, STATE_SUNSET), (CONDITION_SUNSET, 1, STATE_SUNSET),
(CONDITION_IDLE, 1, STATE_IDLE), (CONDITION_IDLE, 1, STATE_IDLE),
), ),
@ -208,6 +209,7 @@ class state_machine_day_state(state_machine.state_machine):
), ),
STATE_SLEEP: ( STATE_SLEEP: (
(CONDITION_WAKE, 1, STATE_WAKE), (CONDITION_WAKE, 1, STATE_WAKE),
(CONDITION_SUNRISE, 1, STATE_SUNRISE),
(CONDITION_IDLE, 1, STATE_IDLE), (CONDITION_IDLE, 1, STATE_IDLE),
), ),
} }