1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

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

This commit is contained in:
Phil Bruckner
2019-07-02 10:29:38 -05:00
committed by Pascal Vizeli
parent 945afbc6d4
commit 3f4ce70414
2 changed files with 102 additions and 1 deletions

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)