mirror of
https://github.com/esphome/esphome.git
synced 2026-08-23 06:36:23 +00:00
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> Co-authored-by: Clyde Stubbs <2366188+clydebarrow@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Co-authored-by: J. Nick Koston <nick@koston.org>
14 lines
388 B
Python
14 lines
388 B
Python
import esphome.codegen as cg
|
|
from tests.testing_helpers import ComponentManifestOverride
|
|
|
|
|
|
def override_manifest(manifest: ComponentManifestOverride) -> None:
|
|
manifest.enable_codegen()
|
|
real_to_code = manifest.to_code
|
|
|
|
async def to_code_testing(config):
|
|
await real_to_code(config)
|
|
cg.add_define("USE_NETWORK_IPV6", True)
|
|
|
|
manifest.to_code = to_code_testing
|