mirror of
https://github.com/esphome/esphome.git
synced 2026-10-14 10:12:52 +00:00
Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: J. Nick Koston <nick@home-assistant.io>
13 lines
486 B
Python
13 lines
486 B
Python
import esphome.codegen as cg
|
|
from tests.testing_helpers import ComponentManifestOverride
|
|
|
|
|
|
def override_manifest(manifest: ComponentManifestOverride) -> None:
|
|
# The optional features are define-gated; emit them so the tests cover those paths
|
|
async def to_code_testing(config):
|
|
cg.add_define("USE_UFM01_METER_ID")
|
|
cg.add_define("USE_UFM01_SOFTWARE_VERSION")
|
|
cg.add_define("USE_UFM01_CLEAR_ACCUMULATED_FLOW_ACTION")
|
|
|
|
manifest.to_code = to_code_testing
|