mirror of
https://github.com/esphome/esphome.git
synced 2026-10-06 02:51:29 +00:00
[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>
This commit is contained in:
co-authored by
pre-commit-ci-lite[bot]
J. Nick Koston
parent
bfe1f7bd17
commit
cfb7d8089e
@@ -0,0 +1,14 @@
|
||||
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"]
|
||||
Reference in New Issue
Block a user