mirror of
https://github.com/esphome/esphome.git
synced 2025-02-20 02:22:02 +01:00
black / flake8 / pylint fixes
This commit is contained in:
parent
2fc6714c80
commit
1b411a55e4
@ -1,4 +1,3 @@
|
|||||||
from esphome import core
|
|
||||||
import esphome.codegen as cg
|
import esphome.codegen as cg
|
||||||
import esphome.config_validation as cv
|
import esphome.config_validation as cv
|
||||||
from esphome.components import font, color
|
from esphome.components import font, color
|
||||||
@ -64,7 +63,9 @@ async def config_to_layout_item(pvariable_builder, item_config, child_item_build
|
|||||||
background_color = await cg.get_variable(background_color_config)
|
background_color = await cg.get_variable(background_color_config)
|
||||||
cg.add(var.set_background_color(background_color))
|
cg.add(var.set_background_color(background_color))
|
||||||
|
|
||||||
text = await cg.templatable(item_config[CONF_TEXT], args=[], output_type=cg.std_string)
|
text = await cg.templatable(
|
||||||
|
item_config[CONF_TEXT], args=[], output_type=cg.std_string
|
||||||
|
)
|
||||||
cg.add(var.set_text(text))
|
cg.add(var.set_text(text))
|
||||||
|
|
||||||
if text_align := item_config.get(CONF_TEXT_ALIGN):
|
if text_align := item_config.get(CONF_TEXT_ALIGN):
|
||||||
|
Loading…
Reference in New Issue
Block a user