mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 16:57:10 +00:00
Update error message
This commit is contained in:
parent
e093abc366
commit
e2b02f2fd2
@ -76,7 +76,7 @@ class ArestSwitch(SwitchDevice):
|
|||||||
|
|
||||||
def __init__(self, resource, location, name, pin):
|
def __init__(self, resource, location, name, pin):
|
||||||
self._resource = resource
|
self._resource = resource
|
||||||
self._name = '{} {}'.format(location.title(), name.title())\
|
self._name = '{} {}'.format(location.title(), name.title()) \
|
||||||
or DEVICE_DEFAULT_NAME
|
or DEVICE_DEFAULT_NAME
|
||||||
self._pin = pin
|
self._pin = pin
|
||||||
self._state = None
|
self._state = None
|
||||||
@ -113,7 +113,7 @@ class ArestSwitch(SwitchDevice):
|
|||||||
if request.status_code == 200:
|
if request.status_code == 200:
|
||||||
self._state = False
|
self._state = False
|
||||||
else:
|
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)
|
self._resource, self._pin)
|
||||||
|
|
||||||
def update(self):
|
def update(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user