mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Add return value
This commit is contained in:
parent
c19120e012
commit
060cbaf66b
@ -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 = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user