mirror of
https://github.com/esphome/esphome.git
synced 2026-10-14 10:12:52 +00:00
Co-authored-by: J. Nick Koston <nick@home-assistant.io> Co-authored-by: J. Nick Koston <nick@koston.org>
30 lines
916 B
Python
30 lines
916 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",
|
|
"nexus",
|
|
"ira211",
|
|
"nec",
|
|
"magiquest",
|
|
"rc5x",
|
|
"pioneer_wyt",
|
|
"drayton",
|
|
"panasonic",
|
|
):
|
|
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"]
|