[esp32_rmt_led_strip] Add `COMPONENT_SCHEMA` extending (#7918)

This commit is contained in:
Jesse Hills 2024-12-05 16:44:59 +13:00 committed by GitHub
parent ece72c6b18
commit f3cc1e541a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,9 +1,9 @@
from dataclasses import dataclass from dataclasses import dataclass
import esphome.codegen as cg
import esphome.config_validation as cv
from esphome import pins from esphome import pins
import esphome.codegen as cg
from esphome.components import esp32_rmt, light from esphome.components import esp32_rmt, light
import esphome.config_validation as cv
from esphome.const import ( from esphome.const import (
CONF_CHIPSET, CONF_CHIPSET,
CONF_IS_RGBW, CONF_IS_RGBW,
@ -103,7 +103,7 @@ CONFIG_SCHEMA = cv.All(
default="0 us", default="0 us",
): cv.positive_time_period_nanoseconds, ): cv.positive_time_period_nanoseconds,
} }
), ).extend(cv.COMPONENT_SCHEMA),
cv.has_exactly_one_key(CONF_CHIPSET, CONF_BIT0_HIGH), cv.has_exactly_one_key(CONF_CHIPSET, CONF_BIT0_HIGH),
) )