mirror of
https://github.com/esphome/esphome.git
synced 2026-10-22 13:56:10 +00:00
Co-authored-by: J. Nick Koston <nick@koston.org> Co-authored-by: guillempages <guillempages@users.noreply.github.com> Co-authored-by: J. Nick Koston <nick@home-assistant.io>
15 lines
599 B
Python
15 lines
599 B
Python
from esphome.components.runtime_image import get_format
|
|
from esphome.types import ConfigType
|
|
from tests.testing_helpers import ComponentManifestOverride
|
|
|
|
|
|
def override_manifest(manifest: ComponentManifestOverride) -> None:
|
|
# The real to_code needs an image config. The unit tests decode BMP and PNG, and use
|
|
# JPEG for the download buffer resize, so compile in those three decoders.
|
|
async def to_code_testing(config: ConfigType) -> None:
|
|
get_format("BMP").actions()
|
|
get_format("JPEG").actions()
|
|
get_format("PNG").actions()
|
|
|
|
manifest.to_code = to_code_testing
|