From 5d1e0d5c440db7c8ff470834aa4048c53ffa6cb5 Mon Sep 17 00:00:00 2001 From: Wolfgang Ettlinger Date: Tue, 2 Jun 2015 17:04:14 +0200 Subject: [PATCH] fixed pylint warnings --- homeassistant/components/switch/command_switch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/switch/command_switch.py b/homeassistant/components/switch/command_switch.py index d57871153c9..291cd3af04d 100644 --- a/homeassistant/components/switch/command_switch.py +++ b/homeassistant/components/switch/command_switch.py @@ -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