Potential None (#23187)

This commit is contained in:
Penny Wood authored and Pascal Vizeli committed 2019-04-18 14:04:30 +02:00
1 parent df475cb797
commit d9fb3c8c28
1 file changed
+1 -1
@@ -31,6 +31,6 @@ async def async_trigger(hass, config, action, automation_info):
'from_state': from_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)