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:
committed by
Pascal Vizeli
parent
945afbc6d4
commit
3f4ce70414
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user