Skip to content

Commit 6f52f07

Browse files
committed
Fixed merge conflicts
2 parents fecee0f + 42ee71f commit 6f52f07

File tree

1 file changed

+10
-5
lines changed
  • custom_components/daikin_residential_altherma

1 file changed

+10
-5
lines changed

custom_components/daikin_residential_altherma/climate.py

+10-5
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,10 @@ def swing_mode(self):
468468
if v == "swing" and h == "swing":
469469
swingMode = SWING_BOTH
470470
if v == "floorHeatingAirflow":
471-
swingMode = "floorHeatingAirflow"
471+
if h == "swing":
472+
swingMode = "floorHeatingAirflow and Horizontal"
473+
else:
474+
swingMode = "floorHeatingAirflow"
472475
if v == "windNice":
473476
if h == "swing":
474477
swingMode = "Comfort Airflow and Horizontal"
@@ -494,14 +497,16 @@ def swing_modes(self):
494497
for mode in horizontal["currentMode"]["values"]:
495498
if mode == "swing":
496499
swingModes.append(SWING_HORIZONTAL)
497-
if mode == "floorHeatingAirflow":
498-
swingModes.append(mode)
499500
if vertical is not None:
500501
for mode in vertical["currentMode"]["values"]:
501502
if mode == "swing":
502503
swingModes.append(SWING_VERTICAL)
503504
if horizontal is not None:
504505
swingModes.append(SWING_BOTH)
506+
if mode == "floorHeatingAirflow":
507+
swingModes.append(mode)
508+
if horizontal is not None:
509+
swingModes.append("floorHeatingAirflow and Horizontal")
505510
if mode == "windNice":
506511
swingModes.append("Comfort Airflow")
507512
if horizontal is not None:
@@ -522,7 +527,7 @@ async def async_set_swing_mode(self, swing_mode):
522527
vertical = fanDirection.get("vertical")
523528
if horizontal is not None:
524529
new_hMode = "stop"
525-
if swing_mode in (SWING_HORIZONTAL, SWING_BOTH, "Comfort Airflow and Horizontal"):
530+
if swing_mode in (SWING_HORIZONTAL, SWING_BOTH, "Comfort Airflow and Horizontal", "floorHeatingAirflow and Horizontal"):
526531
new_hMode = "swing"
527532
res &= await self._device.set_path(self._device.getId(), self.embedded_id, "fanControl", f"/operationModes/{operationmode}/fanDirection/horizontal/currentMode", new_hMode)
528533
if res is False:
@@ -533,7 +538,7 @@ async def async_set_swing_mode(self, swing_mode):
533538
new_vMode = "stop"
534539
if swing_mode in (SWING_VERTICAL, SWING_BOTH):
535540
new_vMode = "swing"
536-
if swing_mode in ("floorHeatingAirflow"):
541+
if swing_mode in ("floorHeatingAirflow", "floorHeatingAirflow and Horizontal"):
537542
new_vMode = "floorHeatingAirflow"
538543
if swing_mode in ("Comfort Airflow", "Comfort Airflow and Horizontal"):
539544
new_vMode = "windNice"

0 commit comments

Comments
 (0)