mirror of
https://github.com/home-assistant/core.git
synced 2025-06-27 16:37:08 +00:00
Merge pull request #658 from bachp/arest-logargs
Fix order of log arguments for arest switch
This commit is contained in:
commit
901b9075dc
@ -76,7 +76,7 @@ class ArestSwitch(SwitchDevice):
|
|||||||
self._state = True
|
self._state = True
|
||||||
else:
|
else:
|
||||||
_LOGGER.error("Can't turn on pin %s at %s. Is device offline?",
|
_LOGGER.error("Can't turn on pin %s at %s. Is device offline?",
|
||||||
self._resource, self._pin)
|
self._pin, self._resource)
|
||||||
|
|
||||||
def turn_off(self, **kwargs):
|
def turn_off(self, **kwargs):
|
||||||
""" Turn the device off. """
|
""" Turn the device off. """
|
||||||
@ -86,7 +86,7 @@ class ArestSwitch(SwitchDevice):
|
|||||||
self._state = False
|
self._state = False
|
||||||
else:
|
else:
|
||||||
_LOGGER.error("Can't turn off 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._pin, self._resource)
|
||||||
|
|
||||||
def update(self):
|
def update(self):
|
||||||
""" Gets the latest data from aREST API and updates the state. """
|
""" Gets the latest data from aREST API and updates the state. """
|
||||||
|
Loading…
x
Reference in New Issue
Block a user