added return False

This commit is contained in:
sander 2016-01-02 11:56:07 +01:00
parent c703c89dbd
commit 8f2ca856c7

View File

@ -18,6 +18,7 @@ _LOGGER = logging.getLogger(__name__)
CONF_AWAY_TEMP = "away_temperature" CONF_AWAY_TEMP = "away_temperature"
# pylint: disable=unused-argument # pylint: disable=unused-argument
def setup_platform(hass, config, add_devices, discovery_info=None): def setup_platform(hass, config, add_devices, discovery_info=None):
""" Sets up the honeywel thermostat. """ """ Sets up the honeywel thermostat. """
@ -30,6 +31,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
except ValueError: except ValueError:
_LOGGER.error("value entered for item {} should convert to a number" _LOGGER.error("value entered for item {} should convert to a number"
.format(CONF_AWAY_TEMP)) .format(CONF_AWAY_TEMP))
return False
if username is None or password is None: if username is None or password is None:
_LOGGER.error("Missing required configuration items %s or %s", _LOGGER.error("Missing required configuration items %s or %s",
CONF_USERNAME, CONF_PASSWORD) CONF_USERNAME, CONF_PASSWORD)