Add return value

This commit is contained in:
Fabian Affolter 2015-10-24 00:38:19 +02:00
parent c19120e012
commit 060cbaf66b

View File

@ -36,8 +36,8 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
hosts.append(radiotherm.discover.discover_address()) hosts.append(radiotherm.discover.discover_address())
if hosts is None: if hosts is None:
_LOGGER.error("No radiotherm thermostats detected") _LOGGER.error("No radiotherm thermostats detected.")
return return False
hold_temp = config.get(HOLD_TEMP, False) hold_temp = config.get(HOLD_TEMP, False)
tstats = [] tstats = []