mirror of
https://github.com/esphome/esphome.git
synced 2026-09-28 15:30:21 +00:00
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>
15 lines
586 B
Python
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"]
|