Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 192d68d

Browse files
authored
Merge pull request #4 from Sander0542/fix/swap-model-supports-vane
fix: Swap ModelSupportsVaneHorizontal and ModelSupportsVaneVertical
2 parents 2cd5de1 + 1a886c5 commit 192d68d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/pymelcloud/ata_device.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,8 @@ def vane_horizontal_positions(self) -> Optional[List[str]]:
321321
if self._device_conf.get("HideVaneControls", False):
322322
return []
323323
device = self._device_conf.get("Device", {})
324-
if not device.get("ModelSupportsVaneHorizontal", False):
324+
# ModelSupportsVaneVertical and ModelSupportsVaneHorizontal are swapped in the API
325+
if not device.get("ModelSupportsVaneVertical", False):
325326
return []
326327

327328
positions = [
@@ -351,7 +352,8 @@ def vane_vertical_positions(self) -> Optional[List[str]]:
351352
if self._device_conf.get("HideVaneControls", False):
352353
return []
353354
device = self._device_conf.get("Device", {})
354-
if not device.get("ModelSupportsVaneVertical", False):
355+
# ModelSupportsVaneHorizontal and ModelSupportsVaneVertical are swapped in the API
356+
if not device.get("ModelSupportsVaneHorizontal", False):
355357
return []
356358

357359
positions = [

0 commit comments

Comments
 (0)