From f8590f7d1d874d53927e34feb53f4068ed631694 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 18 Oct 2015 01:25:36 +0200 Subject: [PATCH] Include resource in error message --- homeassistant/components/switch/arest.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/switch/arest.py b/homeassistant/components/switch/arest.py index b043fe9e896..c7a7103e7e2 100644 --- a/homeassistant/components/switch/arest.py +++ b/homeassistant/components/switch/arest.py @@ -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 = []