mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Update SetPositionIntentHandler intent schema (#116794)
Update SetPositionIntentHandler Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
This commit is contained in:
parent
8953616d11
commit
8168aff253
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user