mirror of
https://github.com/esphome/esphome.git
synced 2026-10-14 02:02:51 +00:00
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
12 lines
428 B
Python
12 lines
428 B
Python
import esphome.codegen as cg
|
|
from esphome.types import ConfigType
|
|
from tests.testing_helpers import ComponentManifestOverride
|
|
|
|
|
|
def override_manifest(manifest: ComponentManifestOverride) -> None:
|
|
# The platform's own to_code needs a configured hub; only its define is wanted here.
|
|
async def to_code_testing(config: ConfigType) -> None:
|
|
cg.add_define("USE_EMONTX_VERSION")
|
|
|
|
manifest.to_code = to_code_testing
|