fixed pylint warnings

This commit is contained in:
Wolfgang Ettlinger 2015-06-02 17:04:14 +02:00
parent b35bdc606a
commit 5d1e0d5c44

View File

@ -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