mirror of
https://github.com/esphome/esphome.git
synced 2026-11-10 15:15:57 +00:00
15 lines
591 B
Python
15 lines
591 B
Python
import esphome.codegen as cg
|
|
from esphome.types import ConfigType
|
|
from tests.testing_helpers import ComponentManifestOverride
|
|
|
|
|
|
def override_manifest(manifest: ComponentManifestOverride) -> None:
|
|
# AUTO_LOAD sits on the climate platform, which the unit test build does not load.
|
|
manifest.dependencies = manifest.dependencies + ["climate_ir", "climate"]
|
|
|
|
async def to_code_testing(config: ConfigType) -> None:
|
|
# The YAW1F follow-up message is compiled in only for configs that use that model
|
|
cg.add_define("USE_GREE_YAW1F")
|
|
|
|
manifest.to_code = to_code_testing
|