Files
esphome/tests/components/ufm01/__init__.py
T
86192d89f4 [ufm01] Improve stale recovery, add diagnostics and clear flow action (#18899)
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>
2026-10-11 09:29:56 -10:00

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