mirror of
https://github.com/esphome/esphome.git
synced 2026-08-24 15:16:20 +00:00
12 lines
412 B
Python
12 lines
412 B
Python
import esphome.codegen as cg
|
|
from tests.testing_helpers import ComponentManifestOverride
|
|
|
|
|
|
def override_manifest(manifest: ComponentManifestOverride) -> None:
|
|
# No host camera platform exists to emit USE_CAMERA; define it here so
|
|
# the iterator CAMERA state compiles into the test binary.
|
|
async def to_code_testing(config):
|
|
cg.add_define("USE_CAMERA")
|
|
|
|
manifest.to_code = to_code_testing
|