Skip to content

Commit

Permalink
Fix linting; missing setup.cfg on local checkout caused wrong setting…
Browse files Browse the repository at this point in the history
…s for black..
  • Loading branch information
rytilahti committed Mar 29, 2020
1 parent 03e4f64 commit 2914f25
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion homeassistant/components/xiaomi_miio/vacuum.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,9 @@ def fan_speed(self):
if self.vacuum_state is not None:
speed = self.vacuum_state.fanspeed
if speed in self._fan_speeds.values():
return [key for key, value in self._fan_speeds.items() if value == speed][0]
return [
key for key, value in self._fan_speeds.items() if value == speed
][0]
return speed

@property
Expand Down

0 comments on commit 2914f25

Please sign in to comment.