mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
added return False
This commit is contained in:
parent
c703c89dbd
commit
8f2ca856c7
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user