From 8168aff25370e5a7afcb989d83f77815cbbf6903 Mon Sep 17 00:00:00 2001 From: Denis Shulyaka Date: Fri, 10 May 2024 21:33:11 +0300 Subject: [PATCH] Update SetPositionIntentHandler intent schema (#116794) Update SetPositionIntentHandler Co-authored-by: Paulus Schoutsen --- homeassistant/components/intent/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/intent/__init__.py b/homeassistant/components/intent/__init__.py index d367cc20ac5..18eaaba41b7 100644 --- a/homeassistant/components/intent/__init__.py +++ b/homeassistant/components/intent/__init__.py @@ -302,7 +302,9 @@ class SetPositionIntentHandler(intent.DynamicServiceIntentHandler): """Create set position handler.""" super().__init__( intent.INTENT_SET_POSITION, - required_slots={ATTR_POSITION: vol.All(vol.Range(min=0, max=100))}, + required_slots={ + ATTR_POSITION: vol.All(vol.Coerce(int), vol.Range(min=0, max=100)) + }, ) def get_domain_and_service(