mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +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."""
|
"""Create set position handler."""
|
||||||
super().__init__(
|
super().__init__(
|
||||||
intent.INTENT_SET_POSITION,
|
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(
|
def get_domain_and_service(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user