From 2732b2030545a857e3e419051b8832c9c2b3e789 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=B8yer=20Iversen?= Date: Mon, 30 Nov 2015 09:22:04 +0100 Subject: [PATCH] style fix in heatcontrol --- homeassistant/components/thermostat/heat_control.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/thermostat/heat_control.py b/homeassistant/components/thermostat/heat_control.py index 66992e223a0..93326be384a 100644 --- a/homeassistant/components/thermostat/heat_control.py +++ b/homeassistant/components/thermostat/heat_control.py @@ -46,14 +46,16 @@ def setup_platform(hass, config, add_devices, discovery_info=None): CONF_SENSOR) return False - add_devices([HeatControl(hass, name, heater_entity_id, sensor_entity_id, min_temp, max_temp, target_temp)]) + add_devices([HeatControl(hass, name, heater_entity_id, sensor_entity_id, + min_temp, max_temp, target_temp)]) # pylint: disable=too-many-instance-attributes class HeatControl(ThermostatDevice): """ Represents a HeatControl device. """ - def __init__(self, hass, name, heater_entity_id, sensor_entity_id, min_temp, max_temp, target_temp): + def __init__(self, hass, name, heater_entity_id, sensor_entity_id, + min_temp, max_temp, target_temp): self.hass = hass self._name = name self.heater_entity_id = heater_entity_id @@ -111,6 +113,7 @@ class HeatControl(ThermostatDevice): if self._min_temp: return self._min_temp else: + # pylint: disable=no-member return ThermostatDevice.min_temp.fget(self) @property @@ -119,6 +122,7 @@ class HeatControl(ThermostatDevice): if self._min_temp: return self._max_temp else: + # pylint: disable=no-member return ThermostatDevice.max_temp.fget(self) def _sensor_changed(self, entity_id, old_state, new_state):