mirror of
https://github.com/home-assistant/core.git
synced 2025-07-10 23:07:09 +00:00
Correct ci failed tests
This commit is contained in:
parent
fc1cf49fd3
commit
0cf909cce9
@ -33,8 +33,8 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
tstat = radiotherm.get_thermostat(host)
|
tstat = radiotherm.get_thermostat(host)
|
||||||
except URLError as err:
|
except URLError:
|
||||||
logger.Exception(
|
logger.exception(
|
||||||
"Unable to connect to Radio Thermostat")
|
"Unable to connect to Radio Thermostat")
|
||||||
return
|
return
|
||||||
|
|
||||||
@ -103,7 +103,7 @@ class RadioThermostat(ThermostatDevice):
|
|||||||
if self.operation == STATE_COOL:
|
if self.operation == STATE_COOL:
|
||||||
self.device.t_cool = temperature
|
self.device.t_cool = temperature
|
||||||
elif self.operation == STATE_HEAT:
|
elif self.operation == STATE_HEAT:
|
||||||
self.device.t_heat
|
self.device.t_heat = temperature
|
||||||
|
|
||||||
def set_name(self, name):
|
def set_name(self, name):
|
||||||
""" Set thermostat name """
|
""" Set thermostat name """
|
||||||
|
Loading…
x
Reference in New Issue
Block a user