mirror of
https://github.com/esphome/esphome.git
synced 2024-12-12 08:24:55 +01:00
black / flake8 / pylint fixes
This commit is contained in:
parent
2fc6714c80
commit
1b411a55e4
1 changed files with 3 additions and 2 deletions
|
@ -1,4 +1,3 @@
|
|||
from esphome import core
|
||||
import esphome.codegen as cg
|
||||
import esphome.config_validation as cv
|
||||
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)
|
||||
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))
|
||||
|
||||
if text_align := item_config.get(CONF_TEXT_ALIGN):
|
||||
|
|
Loading…
Reference in a new issue