original_docstring: Call action with right context.
docstring: Call action with right context.
docstring_tokens: Call action with right context .
code: def call_action():
              """Call action with right context."""
              hass.async_run_job(
                  action(
                      {
                          "trigger": {
                              "platform": "template",
                              "entity_id": entity_id,
                              "from_state": from_s,
                              "to_state": to_s,
                              "for": time_delta if not time_delta else period,
                          }
                      },
                      context=(to_s.context if to_s else None),
                  )
              )
code_tokens: def call_action ( ) : hass . async_run_job ( action ( { "trigger" : { "platform" : "template" , "entity_id" : entity_id , "from_state" : from_s , "to_state" : to_s , "for" : time_delta if not time_delta else period , } } , context = ( to_s . context if to_s else None ) , ) )
short_docstring: Call action with right context.
short_docstring_tokens: Call action with right context .
comment: """Call action with right context."""