[whirlpool] Add the HISENSE_ARG model for Hisense and BGH units sold in Argentina (#17352)

Co-authored-by: J. Nick Koston <nick@home-assistant.io>
Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
arpena
2026-10-12 07:57:23 -10:00
committed by GitHub
co-authored by J. Nick Koston J. Nick Koston
parent aa0bd9af72
commit ca69c33530
17 changed files with 603 additions and 26 deletions
@@ -0,0 +1,27 @@
"""The Hisense ARG code is compiled in only when that model is configured."""
from collections.abc import Callable
from pathlib import Path
from esphome.core import CORE
DEFINE = "USE_WHIRLPOOL_HISENSE_ARG"
HERE = Path(__file__).parent
def _define_names() -> set[str]:
return {define.name for define in CORE.defines}
def test_hisense_arg_model_emits_the_define(
generate_main: Callable[[str | Path], str],
) -> None:
generate_main(HERE / "test_model_define.yaml")
assert DEFINE in _define_names()
def test_dg11j1_model_does_not_emit_the_define(
generate_main: Callable[[str | Path], str],
) -> None:
generate_main(HERE / "test_model_define_dg11j1.yaml")
assert DEFINE not in _define_names()
@@ -0,0 +1,16 @@
esphome:
name: test
esp32:
board: esp32dev
remote_transmitter:
id: xmitr
pin: GPIO4
carrier_duty_percent: 50%
climate:
- platform: whirlpool
name: Hisense
model: HISENSE_ARG
transmitter_id: xmitr
@@ -0,0 +1,16 @@
esphome:
name: test
esp32:
board: esp32dev
remote_transmitter:
id: xmitr
pin: GPIO4
carrier_duty_percent: 50%
climate:
- platform: whirlpool
name: Whirlpool
model: DG11J1-91
transmitter_id: xmitr