mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 21:44:55 +01:00
Tweak Color init because IDF 5+ (#5221)
This commit is contained in:
parent
b56c606523
commit
8e7e8da4a3
1 changed files with 1 additions and 1 deletions
|
@ -82,5 +82,5 @@ async def to_code(config):
|
||||||
|
|
||||||
cg.new_variable(
|
cg.new_variable(
|
||||||
config[CONF_ID],
|
config[CONF_ID],
|
||||||
cg.StructInitializer(ColorStruct, ("r", r), ("g", g), ("b", b), ("w", w)),
|
cg.ArrayInitializer(r, g, b, w),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue