mirror of
https://github.com/esphome/esphome.git
synced 2026-09-27 15:00:24 +00:00
Co-authored-by: J. Nick Koston <nick@koston.org> Co-authored-by: J. Nick Koston <nick@home-assistant.io>
10 lines
597 B
Python
10 lines
597 B
Python
from tests.testing_helpers import ComponentManifestOverride
|
|
|
|
|
|
def override_manifest(manifest: ComponentManifestOverride) -> None:
|
|
# This component's AUTO_LOAD = ["climate_ir"] sits on the climate platform manifest, while its
|
|
# own __init__.py is empty. The unit test build resolves the bare `fujitsu_general` domain, so
|
|
# it never sees that manifest. And climate_ir itself doesn't declare `climate` even though
|
|
# ClimateIR derives from climate::Climate. Pull both in so the test can include the header.
|
|
manifest.dependencies = manifest.dependencies + ["climate_ir", "climate"]
|