File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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 = [
You can’t perform that action at this time.
0 commit comments