Tweak Color init because IDF 5+ (#5221)

This commit is contained in:
Keith Burzinski 2023-08-10 00:11:57 -05:00 committed by GitHub
parent b56c606523
commit 8e7e8da4a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -82,5 +82,5 @@ async def to_code(config):
cg.new_variable(
config[CONF_ID],
cg.StructInitializer(ColorStruct, ("r", r), ("g", g), ("b", b), ("w", w)),
cg.ArrayInitializer(r, g, b, w),
)