fix flake8 warnings

pull/695/head
nkgilley@gmail.com 2015-12-02 16:37:16 -05:00
parent 02a8ce71d0
commit 502184812d
2 changed files with 6 additions and 4 deletions

View File

@ -44,7 +44,6 @@ _LOGGER = logging.getLogger(__name__)
ECOBEE_CONFIG_FILE = 'ecobee.conf' ECOBEE_CONFIG_FILE = 'ecobee.conf'
def setup_platform(hass, config, add_devices, discovery_info=None): def setup_platform(hass, config, add_devices, discovery_info=None):
""" Sets up the sensors. """ """ Sets up the sensors. """
if discovery_info is None: if discovery_info is None:

View File

@ -164,7 +164,8 @@ class Thermostat(ThermostatDevice):
""" Turns away on. """ """ Turns away on. """
self._away = True self._away = True
if self.hold_temp: if self.hold_temp:
self.data.ecobee.set_climate_hold(self.thermostat_index, "away", "indefinite") self.data.ecobee.set_climate_hold(self.thermostat_index,
"away", "indefinite")
else: else:
self.data.ecobee.set_climate_hold(self.thermostat_index, "away") self.data.ecobee.set_climate_hold(self.thermostat_index, "away")
@ -179,9 +180,11 @@ class Thermostat(ThermostatDevice):
low_temp = temperature - 1 low_temp = temperature - 1
high_temp = temperature + 1 high_temp = temperature + 1
if self.hold_temp: if self.hold_temp:
self.data.ecobee.set_hold_temp(self.thermostat_index, low_temp, high_temp, "indefinite") self.data.ecobee.set_hold_temp(self.thermostat_index, low_temp,
high_temp, "indefinite")
else: else:
self.data.ecobee.set_hold_temp(self.thermostat_index, low_temp, high_temp) self.data.ecobee.set_hold_temp(self.thermostat_index, low_temp,
high_temp)
def set_hvac_mode(self, mode): def set_hvac_mode(self, mode):
""" Set HVAC mode (auto, auxHeatOnly, cool, heat, off) """ """ Set HVAC mode (auto, auxHeatOnly, cool, heat, off) """