mirror of
https://github.com/esphome/esphome.git
synced 2026-07-10 08:55:36 +00:00
[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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user