Fix 'same state' monitoring in state trigger (#24904)

This commit is contained in:
Phil Bruckner authored and Pascal Vizeli committed 2019-07-02 17:29:38 +02:00
1 parent 945afbc6d4
commit 3f4ce70414
2 files changed
+102 -1

No files matched your search

+1 -1
View File
@@ -58,7 +58,7 @@ async def async_trigger(hass, config, action, automation_info):
unsub_track_same[entity] = async_track_same_state(
hass, time_delta, call_action,
lambda _, _2, to_state: to_state.state == to_s.state,
entity_ids=entity_id)
entity_ids=entity)
unsub = async_track_state_change(
hass, entity_id, state_automation_listener, from_state, to_state)