Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/pymelcloud/ata_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,8 @@ def vane_horizontal_positions(self) -> Optional[List[str]]:
if self._device_conf.get("HideVaneControls", False):
return []
device = self._device_conf.get("Device", {})
if not device.get("ModelSupportsVaneHorizontal", False):
# ModelSupportsVaneVertical and ModelSupportsVaneHorizontal are swapped in the API
if not device.get("ModelSupportsVaneVertical", False):
return []

positions = [
Expand Down Expand Up @@ -351,7 +352,8 @@ def vane_vertical_positions(self) -> Optional[List[str]]:
if self._device_conf.get("HideVaneControls", False):
return []
device = self._device_conf.get("Device", {})
if not device.get("ModelSupportsVaneVertical", False):
# ModelSupportsVaneHorizontal and ModelSupportsVaneVertical are swapped in the API
if not device.get("ModelSupportsVaneHorizontal", False):
return []

positions = [
Expand Down