style fix in heat control

pull/687/head
Daniel Hoyer Iversen 2015-11-30 11:45:09 +01:00
parent 758c0aae24
commit 2e89f0a8c7
2 changed files with 5 additions and 3 deletions

@ -1 +1 @@
Subproject commit 300f3582a61b5781431778cd2f44bef05d49baf3
Subproject commit c130933f45262dd1c7b4fd75d23a90c132fb271f

View File

@ -111,19 +111,21 @@ class HeatControl(ThermostatDevice):
@property
def min_temp(self):
""" Return minimum temperature. """
# pylint: disable=no-member
if self._min_temp:
return self._min_temp
else:
# pylint: disable=no-member
# get default temp from super class
return ThermostatDevice.min_temp.fget(self)
@property
def max_temp(self):
""" Return maximum temperature. """
# pylint: disable=no-member
if self._min_temp:
return self._max_temp
else:
# pylint: disable=no-member
# get default temp from super class
return ThermostatDevice.max_temp.fget(self)
def _sensor_changed(self, entity_id, old_state, new_state):