Skip to content

Commit

Permalink
Update splitAC.py
Browse files Browse the repository at this point in the history
  • Loading branch information
xerxes87 authored Aug 13, 2019
1 parent 9ed16f1 commit 9ead2d2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pyfujitseu/splitAC.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,15 +132,16 @@ def changeSwingMode(self, mode):
return None

def get_swing_mode_desc(self):
if not isinstance(self.af_vertical_direction['value'],int):
return None
SWING_LIST_DICT = {
0: 'Horizontal',
1: 'Down',
2: 'Unknown',
3: 'Swing'
}
return SWING_LIST_DICT[self.af_vertical_direction['value']]
if not isinstance(self.af_vertical_direction['value'],int):
return SWING_LIST_DICT[2] #unknown
else:
return SWING_LIST_DICT[self.af_vertical_direction['value']]

## Direction Settings
## Vertical
Expand Down

0 comments on commit 9ead2d2

Please sign in to comment.