From d0ddbb5f5807b798434d5441a4dc693583c4424e Mon Sep 17 00:00:00 2001 From: "David F. Mulcahey" <david.mulcahey@me.com> Date: Tue, 1 Nov 2022 09:06:55 -0400 Subject: [PATCH] Fix individual LED range for ZHA device action (#81351) The inovelli individual LED effect device action can address 7 LEDs. I had set the range 1-7 but it should be 0-6. --- homeassistant/components/zha/device_action.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/zha/device_action.py b/homeassistant/components/zha/device_action.py index 1cb988b1c15..3e2a3591c80 100644 --- a/homeassistant/components/zha/device_action.py +++ b/homeassistant/components/zha/device_action.py @@ -93,7 +93,7 @@ DEVICE_ACTION_SCHEMAS = { ), INOVELLI_INDIVIDUAL_LED_EFFECT: vol.Schema( { - vol.Required("led_number"): vol.All(vol.Coerce(int), vol.Range(1, 7)), + vol.Required("led_number"): vol.All(vol.Coerce(int), vol.Range(0, 6)), vol.Required("effect_type"): vol.In( InovelliConfigEntityChannel.LEDEffectType.__members__.keys() ), -- GitLab