mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 00:37:13 +00:00
Limits of the favorite level updated. Values between 0 and 16 will be accepted. (#10186)
This commit is contained in:
parent
f060dcc0aa
commit
df19172e56
@ -69,7 +69,7 @@ SERVICE_SCHEMA_LED_BRIGHTNESS = AIRPURIFIER_SERVICE_SCHEMA.extend({
|
||||
|
||||
SERVICE_SCHEMA_FAVORITE_LEVEL = AIRPURIFIER_SERVICE_SCHEMA.extend({
|
||||
vol.Required(ATTR_LEVEL):
|
||||
vol.All(vol.Coerce(int), vol.Clamp(min=0, max=17))
|
||||
vol.All(vol.Coerce(int), vol.Clamp(min=0, max=16))
|
||||
})
|
||||
|
||||
SERVICE_TO_METHOD = {
|
||||
|
@ -40,7 +40,7 @@ xiaomi_miio_set_favorite_level:
|
||||
example: 'fan.xiaomi_air_purifier'
|
||||
|
||||
level:
|
||||
description: Level, between 0 and 17.
|
||||
description: Level, between 0 and 16.
|
||||
example: '1'
|
||||
|
||||
xiaomi_miio_set_led_brightness:
|
||||
|
Loading…
x
Reference in New Issue
Block a user