diff --git a/esphome/components/neopixelbus/_methods.py b/esphome/components/neopixelbus/_methods.py index b03544f246..4e3c3ca778 100644 --- a/esphome/components/neopixelbus/_methods.py +++ b/esphome/components/neopixelbus/_methods.py @@ -88,8 +88,8 @@ def _esp32_i2s_default_bus(): def _validate_esp32_i2s_bus(value): - if isinstance(value, str) and value.lower() == CHANNEL_DYNAMIC: - value = CHANNEL_DYNAMIC + if isinstance(value, str) and value.lower() == BUS_DYNAMIC: + value = BUS_DYNAMIC else: value = cv.int_(value) variant_buses = {