mirror of
https://github.com/esphome/esphome.git
synced 2024-12-21 16:27:44 +01:00
[esp32_rmt_led_strip] Add `COMPONENT_SCHEMA
` extending (#7918)
This commit is contained in:
parent
ece72c6b18
commit
f3cc1e541a
@ -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),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user