mirror of https://github.com/esphome/esphome.git
Update esphome/components/beken_spi_led_strip/light.py
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
parent
476bbe4138
commit
23d9c34618
|
@ -84,7 +84,8 @@ def _validate_num_leds(value):
|
|||
max_num_leds = 123 # 127
|
||||
if value[CONF_NUM_LEDS] > max_num_leds:
|
||||
raise cv.Invalid(
|
||||
f"The maximum number of LEDs for this configuration is {max_num_leds}."
|
||||
f"The maximum number of LEDs for this configuration is {max_num_leds}.",
|
||||
path=CONF_NUM_LEDS,
|
||||
)
|
||||
return value
|
||||
|
||||
|
|
Loading…
Reference in New Issue