mirror of
https://github.com/esphome/esphome.git
synced 2026-05-30 23:54:04 +08:00
Correct constant for dynamic I2S bus in NeoPixelBus (#2797)
This commit is contained in:
@@ -88,8 +88,8 @@ def _esp32_i2s_default_bus():
|
|||||||
|
|
||||||
|
|
||||||
def _validate_esp32_i2s_bus(value):
|
def _validate_esp32_i2s_bus(value):
|
||||||
if isinstance(value, str) and value.lower() == CHANNEL_DYNAMIC:
|
if isinstance(value, str) and value.lower() == BUS_DYNAMIC:
|
||||||
value = CHANNEL_DYNAMIC
|
value = BUS_DYNAMIC
|
||||||
else:
|
else:
|
||||||
value = cv.int_(value)
|
value = cv.int_(value)
|
||||||
variant_buses = {
|
variant_buses = {
|
||||||
|
|||||||
Reference in New Issue
Block a user