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 14, 2019
1 parent 53d6a8c commit 2d23635
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions pyfujitseu/splitAC.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,6 @@ def get_fan_speed_desc(self):
## 0: 'Horizontal',1: 'Down', 2: 'Unknown', 3: 'Swing'
def changeSwingMode(self, mode):
print(mode)
if self.af_vertical_direction['value'] is not None:
return SWING_LIST_DICT[2] #unknown
elif not isinstance(self.af_vertical_direction['value'],int):
return SWING_LIST_DICT[2] #unknown
if mode.upper() == 'HORIZONTAL':
self.af_vertical_direction = 0
return None
Expand All @@ -142,12 +138,11 @@ def get_swing_mode_desc(self):
2: 'Unknown',
3: 'Swing'
}
if self.af_vertical_direction['value'] is not None:
return SWING_LIST_DICT[2] #unknown
elif not isinstance(self.af_vertical_direction['value'],int):
return SWING_LIST_DICT[2] #unknown
else:
try:
return SWING_LIST_DICT[self.af_vertical_direction['value']]
except TypeError:
return SWING_LIST_DICT[2]


## Direction Settings
## Vertical
Expand Down

0 comments on commit 2d23635

Please sign in to comment.