pylint and PEP8 errors

This commit is contained in:
Gustav Ahlberg 2014-11-11 22:35:06 +01:00 committed by Paulus Schoutsen
parent f4e54719b9
commit 8c6e6e464e
3 changed files with 16 additions and 8 deletions

View file

@ -65,6 +65,9 @@ def setup(hass, config):
if switch_type == 'wemo':
switch_init = get_wemo_switches
elif switch_type == 'tellstick':
switch_init = get_tellstick_switches
else:
logger.error("Unknown switch type specified: %s", switch_type)
@ -225,7 +228,7 @@ class TellstickSwitch(ToggleDevice):
return self.tellstick.name
# pylint: disable=unused-argument
def turn_on(self, dimming=None):
def turn_on(self, **kwargs):
""" Turns the switch on. """
self.tellstick.turn_on()
@ -235,6 +238,7 @@ class TellstickSwitch(ToggleDevice):
def is_on(self):
""" True if switch is on. """
try:
import tellcore.constants as tellcore_constants
except ImportError: