Skip to content

Commit f4c3275

Browse files
authored
fix: Fixes #174 and #98 where changing a control entity does not transition EC to blocked state (R3.2)
A state machine transition was missing (or commented out due to unintended side effects). Uncommenting this line resolves the mentioned issues.
1 parent f2fd1b9 commit f4c3275

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

custom_components/entity_controller/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,8 @@ async def async_setup(hass, config):
305305
dest="idle",
306306
conditions=["is_state_entities_off"],
307307
)
308-
# machine.add_transition(trigger='control', source='active_timer',
309-
# dest='blocked', conditions=['is_state_entities_on'])
308+
machine.add_transition(trigger='control', source='active_timer',
309+
dest='blocked', conditions=['is_state_entities_on'])
310310

311311
# machine.add_transition(trigger='sensor_off', source='active_stay_on', dest=None)
312312
machine.add_transition(trigger="timer_expires", source="active_stay_on", dest=None)

0 commit comments

Comments
 (0)