1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-13 00:32:20 +01:00

Pull PollingComponent up from individual display drivers to Display. (#5444)

This commit is contained in:
Clyde Stubbs
2023-11-27 07:48:38 +11:00
committed by GitHub
parent ccd7f0661c
commit dbdcb39af9
39 changed files with 19 additions and 47 deletions

View File

@@ -58,7 +58,7 @@ BASIC_DISPLAY_SCHEMA = cv.Schema(
{
cv.Optional(CONF_LAMBDA): cv.lambda_,
}
)
).extend(cv.polling_component_schema("1s"))
FULL_DISPLAY_SCHEMA = BASIC_DISPLAY_SCHEMA.extend(
{
@@ -116,6 +116,7 @@ async def setup_display_core_(var, config):
async def register_display(var, config):
await cg.register_component(var, config)
await setup_display_core_(var, config)