Update SetPositionIntentHandler intent schema (#116794)

Update SetPositionIntentHandler

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
This commit is contained in:
Denis Shulyaka 2024-05-10 21:33:11 +03:00 committed by GitHub
parent 8953616d11
commit 8168aff253
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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(