From f2d0512f39648560f9aabf7dfdd43f89558d4711 Mon Sep 17 00:00:00 2001 From: tronikos Date: Mon, 27 May 2024 17:30:34 -0700 Subject: [PATCH] Make sure HassToggle and HassSetPosition have description (#118267) --- homeassistant/components/intent/__init__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/intent/__init__.py b/homeassistant/components/intent/__init__.py index 6dbe98429f3..23ba2112542 100644 --- a/homeassistant/components/intent/__init__.py +++ b/homeassistant/components/intent/__init__.py @@ -99,7 +99,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: intent.INTENT_TOGGLE, HA_DOMAIN, SERVICE_TOGGLE, - "Toggles a device or entity", + description="Toggles a device or entity", ), ) intent.async_register( @@ -344,8 +344,6 @@ class NevermindIntentHandler(intent.IntentHandler): class SetPositionIntentHandler(intent.DynamicServiceIntentHandler): """Intent handler for setting positions.""" - description = "Sets the position of a device or entity" - def __init__(self) -> None: """Create set position handler.""" super().__init__( @@ -353,6 +351,7 @@ class SetPositionIntentHandler(intent.DynamicServiceIntentHandler): required_slots={ ATTR_POSITION: vol.All(vol.Coerce(int), vol.Range(min=0, max=100)) }, + description="Sets the position of a device or entity", ) def get_domain_and_service(