Fix 'same state' monitoring in numeric_state trigger (#24910)

This commit is contained in:
Phil Bruckner 2019-07-02 10:28:02 -05:00 committed by Pascal Vizeli
parent c0a342d790
commit 945afbc6d4
2 changed files with 104 additions and 1 deletions

View file

@ -79,7 +79,7 @@ async def async_trigger(hass, config, action, automation_info):
if time_delta:
unsub_track_same[entity] = async_track_same_state(
hass, time_delta, call_action, entity_ids=entity_id,
hass, time_delta, call_action, entity_ids=entity,
async_check_same_func=check_numeric_state)
else:
call_action()