Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.intent_script.ScriptIntentHandler Class Reference
Inheritance diagram for homeassistant.components.intent_script.ScriptIntentHandler:
[legend]
Collaboration diagram for homeassistant.components.intent_script.ScriptIntentHandler:
[legend]

Public Member Functions

None __init__ (self, str intent_type, ConfigType config)
 
intent.IntentResponse async_handle (self, intent.Intent intent_obj)
 

Public Attributes

 config
 
 description
 
 intent_type
 
 platforms
 

Static Public Attributes

dictionary slot_schema
 

Detailed Description

Respond to an intent with a script.

Definition at line 144 of file __init__.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.intent_script.ScriptIntentHandler.__init__ (   self,
str  intent_type,
ConfigType  config 
)
Initialize the script intent handler.

Definition at line 153 of file __init__.py.

Member Function Documentation

◆ async_handle()

intent.IntentResponse homeassistant.components.intent_script.ScriptIntentHandler.async_handle (   self,
intent.Intent  intent_obj 
)
Handle the intent.

Definition at line 160 of file __init__.py.

Member Data Documentation

◆ config

homeassistant.components.intent_script.ScriptIntentHandler.config

Definition at line 156 of file __init__.py.

◆ description

homeassistant.components.intent_script.ScriptIntentHandler.description

Definition at line 157 of file __init__.py.

◆ intent_type

homeassistant.components.intent_script.ScriptIntentHandler.intent_type

Definition at line 155 of file __init__.py.

◆ platforms

homeassistant.components.intent_script.ScriptIntentHandler.platforms

Definition at line 158 of file __init__.py.

◆ slot_schema

dictionary homeassistant.components.intent_script.ScriptIntentHandler.slot_schema
static
Initial value:
= {
vol.Any("name", "area", "floor"): cv.string,
vol.Optional("domain"): vol.All(cv.ensure_list, [cv.string]),
vol.Optional("device_class"): vol.All(cv.ensure_list, [cv.string]),
}

Definition at line 147 of file __init__.py.


The documentation for this class was generated from the following file: