Skip to content
Snippets Groups Projects
Commit d0ddbb5f authored by David F. Mulcahey's avatar David F. Mulcahey Committed by Paulus Schoutsen
Browse files

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.
parent f265c160
No related branches found
No related tags found
No related merge requests found
...@@ -93,7 +93,7 @@ DEVICE_ACTION_SCHEMAS = { ...@@ -93,7 +93,7 @@ DEVICE_ACTION_SCHEMAS = {
), ),
INOVELLI_INDIVIDUAL_LED_EFFECT: vol.Schema( 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( vol.Required("effect_type"): vol.In(
InovelliConfigEntityChannel.LEDEffectType.__members__.keys() InovelliConfigEntityChannel.LEDEffectType.__members__.keys()
), ),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment