diff --git a/homeassistant/components/sensor/ecobee.py b/homeassistant/components/sensor/ecobee.py index fd70aadf001..5cf6875aded 100644 --- a/homeassistant/components/sensor/ecobee.py +++ b/homeassistant/components/sensor/ecobee.py @@ -44,7 +44,6 @@ _LOGGER = logging.getLogger(__name__) ECOBEE_CONFIG_FILE = 'ecobee.conf' - def setup_platform(hass, config, add_devices, discovery_info=None): """ Sets up the sensors. """ if discovery_info is None: diff --git a/homeassistant/components/thermostat/ecobee.py b/homeassistant/components/thermostat/ecobee.py index 12ff186d766..a10d2940001 100644 --- a/homeassistant/components/thermostat/ecobee.py +++ b/homeassistant/components/thermostat/ecobee.py @@ -164,7 +164,8 @@ class Thermostat(ThermostatDevice): """ Turns away on. """ self._away = True 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: self.data.ecobee.set_climate_hold(self.thermostat_index, "away") @@ -179,9 +180,11 @@ class Thermostat(ThermostatDevice): low_temp = temperature - 1 high_temp = temperature + 1 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: - 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): """ Set HVAC mode (auto, auxHeatOnly, cool, heat, off) """