From 1d49daa90c0f06d943cbb7b46db0d72605ca5e66 Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Mon, 6 Jul 2026 20:38:25 +1200 Subject: [PATCH] [image] Drop obsolete language-schema image fix `image` is now a platform component, so build_language_schema.py no longer needs the fix_image() hook that imported the now-removed IMAGE_SCHEMA (it crashed the schema build). The builder emits image with its file/animation/online_image platforms generically, like other platform components. --- script/build_language_schema.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/script/build_language_schema.py b/script/build_language_schema.py index 974957245a..6d44fa2f3a 100755 --- a/script/build_language_schema.py +++ b/script/build_language_schema.py @@ -390,16 +390,6 @@ def fix_mapping(): output["mapping"][S_SCHEMAS][S_CONFIG_SCHEMA] = config -def fix_image(): - if "image" not in output: - return - from esphome.components.image import IMAGE_SCHEMA - - config = convert_config(IMAGE_SCHEMA, "image/CONFIG_SCHEMA") - config["is_list"] = True - output["image"][S_SCHEMAS][S_CONFIG_SCHEMA] = config - - def fix_menu(): if "display_menu_base" not in output: return @@ -763,7 +753,6 @@ def build_schema(): fix_font() fix_globals() fix_mapping() - fix_image() add_logger_tags() shrink() fix_menu()