Add return value
This commit is contained in:
1 parent
984f01359c
commit
56a151b196
1 file changed
+1
@@ -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.')
|
||||
|
||||
Reference in new issue
Block a user