Fix range parameters for light.addressable_set (#1363)

Since 521c080989d4 the range parameters are a closed interval, not a half-open interval.
This commit is contained in:
Oxan van Leeuwen 2021-08-04 08:14:41 +02:00 committed by GitHub
parent 96bc8820f6
commit d0f311a18f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -309,10 +309,10 @@ Configuration variables:
- **id** (**Required**, :ref:`config-id`): The ID of the addressable light to control.
- **range_from** (*Optional*, :ref:`templatable <config-templatable>`, int): The beginning
of the range of LEDs to control. 0-based indexing. Defaults to 0 (the beginning of the strip).
of the range of LEDs to control, inclusive, using zero-based indexing. Defaults to 0 (the beginning of the strip).
- **range_to** (*Optional*, :ref:`templatable <config-templatable>`, int): The end of the
range of LEDs to control - this is a half-open interval. 0-based indexing.
Defaults to the end of the strip (``num_leds``).
range of LEDs to control, inclusive, using zero-based indexing.
Defaults to the end of the strip (``num_leds`` - 1).
- **color_brightness** (*Optional*, :ref:`templatable <config-templatable>`, percentage): The brightness to
set the color channel to.
- **red** (*Optional*, :ref:`templatable <config-templatable>`, percentage): The value to