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": platform_type,
                          "entity_id": entity,
                          "from_state": from_s,
                          "to_state": to_s,
                          "for": time_delta if not time_delta else period[entity],
                          "attribute": attribute,
                      }
                  },
                  event.context,
              )
code_tokens: def call_action ( ) : hass . async_run_job ( action , { "trigger" : { "platform" : platform_type , "entity_id" : entity , "from_state" : from_s , "to_state" : to_s , "for" : time_delta if not time_delta else period [ entity ] , "attribute" : attribute , } } , event . context , )
short_docstring: Call action with right context.
short_docstring_tokens: Call action with right context .
comment: """Call action with right context."""