From 56a151b196c65cb27ccbdcdc313c5b0f75a4fd14 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 15 Sep 2015 08:21:58 +0200 Subject: [PATCH] Add return value --- homeassistant/components/sensor/glances.py | 1 + 1 file changed, 1 insertion(+) diff --git a/homeassistant/components/sensor/glances.py b/homeassistant/components/sensor/glances.py index 2c288841bfb..4a4d47c32f8 100644 --- a/homeassistant/components/sensor/glances.py +++ b/homeassistant/components/sensor/glances.py @@ -101,6 +101,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None): response = requests.get(url, timeout=10) if not response.ok: _LOGGER.error('Response status is "%s"', response.status_code) + return False except requests.exceptions.MissingSchema: _LOGGER.error('Missing resource or schema in configuration. ' 'Please heck our details in the configuration file.')