コード例 #1
0
 async def async_handle(self, intent):
     """Handle the intent."""
     response = intent.create_response()
     response.async_set_speech(
         "I've ordered a {}!".format(intent.slots['type']['value']))
     response.async_set_card(
         "Beer ordered",
         "You chose a {}.".format(intent.slots['type']['value']))
     return response
コード例 #2
0
ファイル: test_init.py プロジェクト: zzrgenius/home-assistant
 async def async_handle(self, intent):
     """Handle the intent."""
     response = intent.create_response()
     response.async_set_speech("I've ordered a {}!".format(
         intent.slots["type"]["value"]))
     response.async_set_card(
         "Beer ordered",
         "You chose a {}.".format(intent.slots["type"]["value"]))
     return response
コード例 #3
0
ファイル: common.py プロジェクト: fabiandevia/home
 def async_handle(self, intent):
     """Handle the intent."""
     intents.append(intent)
     return intent.create_response()
コード例 #4
0
ファイル: common.py プロジェクト: devanl/home-assistant
 def async_handle(self, intent):
     """Handle the intent."""
     intents.append(intent)
     return intent.create_response()