diff --git a/homeassistant/components/sensor/rest.py b/homeassistant/components/sensor/rest.py index 6fe84288796..62638fd0eb2 100644 --- a/homeassistant/components/sensor/rest.py +++ b/homeassistant/components/sensor/rest.py @@ -62,6 +62,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None): response = get(resource, timeout=10) if not response.ok: _LOGGER.error('Response status is "%s"', response.status_code) + return False except exceptions.MissingSchema: _LOGGER.error('Missing resource or schema in configuration. ' 'Add http:// to your URL.')