Change minimal brightness value for hue.activate_scene service to 1 (#78154)

* Adjust Implementation Hue Scene Brightness so it cannot be 0
This commit is contained in:
Midbin
2022-09-21 11:12:50 +02:00
committed by GitHub
parent 0ac581a0b1
commit 00f1f3e355
2 changed files with 2 additions and 2 deletions

View File

@@ -71,7 +71,7 @@ async def async_setup_entry(
vol.Coerce(float), vol.Range(min=0, max=600) vol.Coerce(float), vol.Range(min=0, max=600)
), ),
vol.Optional(ATTR_BRIGHTNESS): vol.All( vol.Optional(ATTR_BRIGHTNESS): vol.All(
vol.Coerce(int), vol.Range(min=0, max=255) vol.Coerce(int), vol.Range(min=1, max=255)
), ),
}, },
"_async_activate", "_async_activate",

View File

@@ -60,5 +60,5 @@ activate_scene:
advanced: true advanced: true
selector: selector:
number: number:
min: 0 min: 1
max: 255 max: 255