1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-01 19:02:18 +01:00

[display] Allow page actions to have auto generated display id (#10460)

This commit is contained in:
Jesse Hills
2025-09-01 09:22:11 +12:00
committed by GitHub
parent da21174c6d
commit a25b544c3b

View File

@@ -176,7 +176,7 @@ async def display_page_show_to_code(config, action_id, template_arg, args):
DisplayPageShowNextAction,
maybe_simple_id(
{
cv.Required(CONF_ID): cv.templatable(cv.use_id(Display)),
cv.GenerateID(CONF_ID): cv.templatable(cv.use_id(Display)),
}
),
)
@@ -190,7 +190,7 @@ async def display_page_show_next_to_code(config, action_id, template_arg, args):
DisplayPageShowPrevAction,
maybe_simple_id(
{
cv.Required(CONF_ID): cv.templatable(cv.use_id(Display)),
cv.GenerateID(CONF_ID): cv.templatable(cv.use_id(Display)),
}
),
)