Add return value
This commit is contained in:
parent
5df2a1cf76
commit
60d45ebf79
1 changed files with 1 additions and 0 deletions
|
@ -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.')
|
||||
|
|
Loading…
Add table
Reference in a new issue