mirror of
https://github.com/esphome/esphome.git
synced 2024-11-10 09:17:46 +01:00
The display component should not be handling update_interval, (#693)
as that is already done when registering the component.
This commit is contained in:
parent
071272a27f
commit
15a7d2ef75
1 changed files with 1 additions and 4 deletions
|
@ -3,7 +3,7 @@ import esphome.codegen as cg
|
||||||
import esphome.config_validation as cv
|
import esphome.config_validation as cv
|
||||||
from esphome import core, automation
|
from esphome import core, automation
|
||||||
from esphome.automation import maybe_simple_id
|
from esphome.automation import maybe_simple_id
|
||||||
from esphome.const import CONF_ID, CONF_LAMBDA, CONF_PAGES, CONF_ROTATION, CONF_UPDATE_INTERVAL
|
from esphome.const import CONF_ID, CONF_LAMBDA, CONF_PAGES, CONF_ROTATION
|
||||||
from esphome.core import coroutine, coroutine_with_priority
|
from esphome.core import coroutine, coroutine_with_priority
|
||||||
|
|
||||||
IS_PLATFORM_COMPONENT = True
|
IS_PLATFORM_COMPONENT = True
|
||||||
|
@ -33,7 +33,6 @@ def validate_rotation(value):
|
||||||
|
|
||||||
|
|
||||||
BASIC_DISPLAY_SCHEMA = cv.Schema({
|
BASIC_DISPLAY_SCHEMA = cv.Schema({
|
||||||
cv.Optional(CONF_UPDATE_INTERVAL): cv.update_interval,
|
|
||||||
cv.Optional(CONF_LAMBDA): cv.lambda_,
|
cv.Optional(CONF_LAMBDA): cv.lambda_,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -48,8 +47,6 @@ FULL_DISPLAY_SCHEMA = BASIC_DISPLAY_SCHEMA.extend({
|
||||||
|
|
||||||
@coroutine
|
@coroutine
|
||||||
def setup_display_core_(var, config):
|
def setup_display_core_(var, config):
|
||||||
if CONF_UPDATE_INTERVAL in config:
|
|
||||||
cg.add(var.set_update_interval(config[CONF_UPDATE_INTERVAL]))
|
|
||||||
if CONF_ROTATION in config:
|
if CONF_ROTATION in config:
|
||||||
cg.add(var.set_rotation(DISPLAY_ROTATIONS[config[CONF_ROTATION]]))
|
cg.add(var.set_rotation(DISPLAY_ROTATIONS[config[CONF_ROTATION]]))
|
||||||
if CONF_PAGES in config:
|
if CONF_PAGES in config:
|
||||||
|
|
Loading…
Reference in a new issue