[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.
This commit is contained in:
Jesse Hills
2026-07-06 20:38:25 +12:00
parent 0b1e3283d5
commit 1d49daa90c
-11
View File
@@ -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()