mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Include resource in error message
This commit is contained in:
parent
73cb23f599
commit
f8590f7d1d
@ -28,8 +28,9 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||
"Add http:// to your URL.")
|
||||
return False
|
||||
except requests.exceptions.ConnectionError:
|
||||
_LOGGER.error("No route to device. "
|
||||
"Please check the IP address in the configuration file.")
|
||||
_LOGGER.error("No route to device at %s. "
|
||||
"Please check the IP address in the configuration file.",
|
||||
resource)
|
||||
return False
|
||||
|
||||
dev = []
|
||||
|
Loading…
x
Reference in New Issue
Block a user