Skip to content

Commit

Permalink
review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pszafer committed Apr 19, 2019
1 parent 9929a60 commit 9864995
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion homeassistant/components/mqtt/vacuum/__init__.py
Expand Up @@ -18,7 +18,8 @@

CONF_COMPONENT = 'component'
LEGACY = 'legacy'
STATE= 'state'
STATE = 'state'


def validate_mqtt_vacuum(value):
"""Validate MQTT vacuum schema."""
Expand Down
4 changes: 2 additions & 2 deletions homeassistant/components/mqtt/vacuum/schema_legacy.py
Expand Up @@ -452,8 +452,8 @@ async def async_return_to_base(self, **kwargs):

async def async_set_fan_speed(self, fan_speed, **kwargs):
"""Set fan speed."""
if ((self.supported_features & SUPPORT_FAN_SPEED == 0)
or fan_speed not in self._fan_speed_list):
if ((self.supported_features & SUPPORT_FAN_SPEED == 0) or
fan_speed not in self._fan_speed_list):
return None

mqtt.async_publish(self.hass, self._set_fan_speed_topic,
Expand Down

0 comments on commit 9864995

Please sign in to comment.