1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-13 14:18:14 +00:00

Move comment to where pylint is happy.

This commit is contained in:
clydebarrow 2025-02-24 06:04:25 +11:00
parent a0f9b62dae
commit 032d441590

View File

@ -147,11 +147,6 @@ def check_missing_glyphs(file, codepoints, warning: bool = False):
def validate_font_config(config):
if config[CONF_FILE][CONF_TYPE] == TYPE_LOCAL_BITMAP and CONF_SIZE in config:
raise cv.Invalid(
"Size is not a valid option for bitmap fonts, which are inherently fixed size"
)
"""
Check for duplicate codepoints, then check that all requested codepoints actually
have glyphs defined in the appropriate font file.
@ -209,6 +204,11 @@ def validate_font_config(config):
if font.get_char_index(x) != 0
]
if config[CONF_FILE][CONF_TYPE] == TYPE_LOCAL_BITMAP and CONF_SIZE in config:
raise cv.Invalid(
"Size is not a valid option for bitmap fonts, which are inherently fixed size"
)
return config