Add platforms to intent handlers (#118328)

This commit is contained in:
Michael Hansen 2024-05-28 15:46:08 -05:00 committed by GitHub
parent 5eb1d72691
commit 2dc49f0410
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 36 additions and 4 deletions

View file

@ -23,6 +23,7 @@ class ListAddItemIntent(intent.IntentHandler):
intent_type = INTENT_LIST_ADD_ITEM
description = "Add item to a todo list"
slot_schema = {"item": cv.string, "name": cv.string}
platforms = {DOMAIN}
async def async_handle(self, intent_obj: intent.Intent) -> intent.IntentResponse:
"""Handle the intent."""