mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
style fix in heat control
This commit is contained in:
parent
2732b20305
commit
8fee38f2cd
@ -47,7 +47,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||
return False
|
||||
|
||||
add_devices([HeatControl(hass, name, heater_entity_id, sensor_entity_id,
|
||||
min_temp, max_temp, target_temp)])
|
||||
min_temp, max_temp, target_temp)])
|
||||
|
||||
|
||||
# pylint: disable=too-many-instance-attributes
|
||||
@ -55,7 +55,7 @@ class HeatControl(ThermostatDevice):
|
||||
""" Represents a HeatControl device. """
|
||||
|
||||
def __init__(self, hass, name, heater_entity_id, sensor_entity_id,
|
||||
min_temp, max_temp, target_temp):
|
||||
min_temp, max_temp, target_temp):
|
||||
self.hass = hass
|
||||
self._name = name
|
||||
self.heater_entity_id = heater_entity_id
|
||||
@ -89,6 +89,7 @@ class HeatControl(ThermostatDevice):
|
||||
|
||||
@property
|
||||
def current_temperature(self):
|
||||
""" Returns the sensor temperature. """
|
||||
return self._cur_temp
|
||||
|
||||
@property
|
||||
@ -113,7 +114,7 @@ class HeatControl(ThermostatDevice):
|
||||
if self._min_temp:
|
||||
return self._min_temp
|
||||
else:
|
||||
# pylint: disable=no-member
|
||||
# pylint: disable=no-member
|
||||
return ThermostatDevice.min_temp.fget(self)
|
||||
|
||||
@property
|
||||
@ -122,7 +123,7 @@ class HeatControl(ThermostatDevice):
|
||||
if self._min_temp:
|
||||
return self._max_temp
|
||||
else:
|
||||
# pylint: disable=no-member
|
||||
# pylint: disable=no-member
|
||||
return ThermostatDevice.max_temp.fget(self)
|
||||
|
||||
def _sensor_changed(self, entity_id, old_state, new_state):
|
||||
|
Loading…
x
Reference in New Issue
Block a user