mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 12:45:28 +02:00
Make sure HassToggle and HassSetPosition have description (#118267)
This commit is contained in:
@@ -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(
|
||||
|
Reference in New Issue
Block a user