mirror of
https://github.com/esphome/esphome.git
synced 2026-11-09 14:45:57 +00:00
15 lines
475 B
Python
15 lines
475 B
Python
import esphome.codegen as cg
|
|
from esphome.types import ConfigType
|
|
from tests.testing_helpers import ComponentManifestOverride
|
|
|
|
|
|
def override_manifest(manifest: ComponentManifestOverride) -> None:
|
|
# One empty config entry so to_code runs and sets the define that keeps
|
|
# core/line_reader.cpp in the test build.
|
|
manifest.multi_conf = False
|
|
|
|
async def to_code(config: ConfigType) -> None:
|
|
cg.add_define("USE_LINE_READER")
|
|
|
|
manifest.to_code = to_code
|