From af81251a7c3cd46b226d922d7d8026a688d62718 Mon Sep 17 00:00:00 2001 From: Michael Davidson Date: Wed, 20 Dec 2023 22:14:42 +1100 Subject: [PATCH] Make use of constant from const.py --- .../components/graphical_layout/display_rendering_panel.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/esphome/components/graphical_layout/display_rendering_panel.py b/esphome/components/graphical_layout/display_rendering_panel.py index a25ca8c22d..84dcd56353 100644 --- a/esphome/components/graphical_layout/display_rendering_panel.py +++ b/esphome/components/graphical_layout/display_rendering_panel.py @@ -1,15 +1,11 @@ import esphome.codegen as cg -from esphome.const import CONF_ID +from esphome.const import CONF_ID, CONF_WIDTH, CONF_HEIGHT, CONF_LAMBDA from esphome.components.display import DisplayRef graphical_layout_ns = cg.esphome_ns.namespace("graphical_layout") DisplayRenderingPanel = graphical_layout_ns.class_("DisplayRenderingPanel") CONF_TYPE = "display_rendering_panel" -CONF_HEIGHT = "height" -CONF_WIDTH = "width" -CONF_LAMBDA = "lambda" - async def config_to_layout_item(item_config, child_item_builder): var = cg.new_Pvariable(item_config[CONF_ID])