Skip to content

Commit 1a886c5

Browse files
authored
fix: Add comment detailing property swap
1 parent 36b1ef7 commit 1a886c5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/pymelcloud/ata_device.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ 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+
# ModelSupportsVaneVertical and ModelSupportsVaneHorizontal are swapped in the API
324325
if not device.get("ModelSupportsVaneVertical", False):
325326
return []
326327

@@ -351,6 +352,7 @@ 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", {})
355+
# ModelSupportsVaneHorizontal and ModelSupportsVaneVertical are swapped in the API
354356
if not device.get("ModelSupportsVaneHorizontal", False):
355357
return []
356358

0 commit comments

Comments
 (0)