Files
esphome/tests/components/remote_base/__init__.py
T
cfb7d8089e [remote_base] Add AEG Hob2Hood Infrared Protocol (#4687)
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@home-assistant.io>
2026-09-26 00:42:21 +01:00

15 lines
586 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.
request_protocol("hob2hood")
manifest.to_code = to_code_testing
# AUTO_LOAD is not resolved by the unit test build.
manifest.dependencies = manifest.dependencies + ["binary_sensor"]