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:
@@ -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)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user