Fix music mode and on with older 0x08 flux_led models (#64672)

This commit is contained in:
J. Nick Koston 2022-01-21 21:16:24 -10:00 committed by GitHub
parent ea79bfb90f
commit aada66cc93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ from .const import FLUX_LED_EXCEPTIONS
_LOGGER = logging.getLogger(__name__)
REQUEST_REFRESH_DELAY: Final = 1.5
REQUEST_REFRESH_DELAY: Final = 2.0
class FluxLedUpdateCoordinator(DataUpdateCoordinator):

View File

@ -109,7 +109,7 @@ SET_MUSIC_MODE_DICT: Final = {
vol.Coerce(int), vol.Range(min=0, max=100)
),
vol.Optional(ATTR_EFFECT, default=1): vol.All(
vol.Coerce(int), vol.Range(min=1, max=16)
vol.Coerce(int), vol.Range(min=0, max=16)
),
vol.Optional(ATTR_LIGHT_SCREEN, default=False): bool,
vol.Optional(ATTR_FOREGROUND_COLOR): vol.All(