From e2b02f2fd21ef5b5655348c2449acaec7c6d34f8 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 11 Sep 2015 08:07:16 +0200 Subject: [PATCH] Update error message --- homeassistant/components/switch/arest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/switch/arest.py b/homeassistant/components/switch/arest.py index 553b1be52c5..239e24a4925 100644 --- a/homeassistant/components/switch/arest.py +++ b/homeassistant/components/switch/arest.py @@ -76,7 +76,7 @@ class ArestSwitch(SwitchDevice): def __init__(self, resource, location, name, pin): self._resource = resource - self._name = '{} {}'.format(location.title(), name.title())\ + self._name = '{} {}'.format(location.title(), name.title()) \ or DEVICE_DEFAULT_NAME self._pin = pin self._state = None @@ -113,7 +113,7 @@ class ArestSwitch(SwitchDevice): if request.status_code == 200: self._state = False else: - _LOGGER.error("Can't turn on pin %s at %s. Is device offline?", + _LOGGER.error("Can't turn off pin %s at %s. Is device offline?", self._resource, self._pin) def update(self):