mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Potential None (#23187)
This commit is contained in:
parent
df475cb797
commit
d9fb3c8c28
@ -31,6 +31,6 @@ async def async_trigger(hass, config, action, automation_info):
|
|||||||
'from_state': from_s,
|
'from_state': from_s,
|
||||||
'to_state': to_s,
|
'to_state': to_s,
|
||||||
},
|
},
|
||||||
}, context=to_s.context))
|
}, context=(to_s.context if to_s else None)))
|
||||||
|
|
||||||
return async_track_template(hass, value_template, template_listener)
|
return async_track_template(hass, value_template, template_listener)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user