-
- Downloads
Fix state_automation_listener when new state is None (#32985)
* Fix state_automation_listener when new state is None (fix #32984) * Listen to EVENT_STATE_CHANGED instead of using async_track_state_change and use the event context on automation trigger. * Share `process_state_match` with helpers/event * Add test for state change automation on entity removal
Showing
- homeassistant/components/automation/state.py 35 additions, 12 deletionshomeassistant/components/automation/state.py
- homeassistant/helpers/event.py 3 additions, 3 deletionshomeassistant/helpers/event.py
- tests/components/automation/test_state.py 22 additions, 0 deletionstests/components/automation/test_state.py
Please register or sign in to comment