Files
esphome/tests/components/remote_base/__init__.py
T
Bascht74andpre-commit-ci-lite[bot] 22c17fe7e1 [remote_base] Add optional suffix bits to KeeLoq after the HCS301 word (#19891)
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2026-10-11 14:36:27 -10:00

16 lines
663 B
Python

from esphome.types import ConfigType
from tests.testing_helpers import ComponentManifestOverride
def override_manifest(manifest: ComponentManifestOverride) -> None:
from esphome.components.remote_base import request_protocol
async def to_code_testing(config: ConfigType) -> None:
# Protocol sources are compiled only behind their define; keep the ones under test.
for protocol in ("hob2hood", "haier", "mirage", "aeha", "keeloq"):
request_protocol(protocol)
manifest.to_code = to_code_testing
# AUTO_LOAD is not resolved by the unit test build.
manifest.dependencies = manifest.dependencies + ["binary_sensor"]