Files
esphome/tests/components/pd_pioneer_ir/__init__.py
T

15 lines
625 B
Python

from esphome.components import remote_base
from esphome.types import ConfigType
from tests.testing_helpers import ComponentManifestOverride
def override_manifest(manifest: ComponentManifestOverride) -> None:
# The harness walks the component manifest, not the climate platform, so declare its auto-load here
manifest.auto_load = ["climate_ir", "climate"]
async def to_code_testing(config: ConfigType) -> None:
# The platform's to_code never runs here; without this request remote_base drops the protocol source
remote_base.request_protocol("pd_pioneer")
manifest.to_code = to_code_testing