mirror of
https://github.com/m5stack/esphome.git
synced 2026-05-20 11:52:52 -07:00
13 lines
445 B
Python
13 lines
445 B
Python
import esphome.codegen as cg
|
|
from tests.testing_helpers import ComponentManifestOverride
|
|
|
|
|
|
def override_manifest(manifest: ComponentManifestOverride) -> None:
|
|
# Sensor filter benchmarks need USE_SENSOR_FILTER defined.
|
|
# We use a custom to_code instead of enable_codegen() to avoid
|
|
# pulling in the full sensor component setup.
|
|
async def to_code(config):
|
|
cg.add_define("USE_SENSOR_FILTER")
|
|
|
|
manifest.to_code = to_code
|