mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 08:47:57 +00:00
fixed pylint warnings
This commit is contained in:
parent
b35bdc606a
commit
5d1e0d5c44
@ -41,12 +41,12 @@ class CommandSwitch(ToggleEntity):
|
||||
@staticmethod
|
||||
def _switch(command):
|
||||
""" Execute the actual commands """
|
||||
_LOGGER.info('Running command: {}'.format(command))
|
||||
_LOGGER.info('Running command: %s', command)
|
||||
|
||||
success = (subprocess.call(command, shell=True) == 0)
|
||||
|
||||
if not success:
|
||||
_LOGGER.error('Command failed: {}'.format(command))
|
||||
_LOGGER.error('Command failed: %s', command)
|
||||
|
||||
return success
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user