mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 20:27:08 +00:00
Fixed Flake8 error
This commit is contained in:
parent
cb9ad467af
commit
76d14157ec
@ -90,5 +90,5 @@ class TellstickLight(ToggleDevice):
|
|||||||
last_command == tellcore_constants.TELLSTICK_UP or
|
last_command == tellcore_constants.TELLSTICK_UP or
|
||||||
last_command == tellcore_constants.TELLSTICK_DOWN):
|
last_command == tellcore_constants.TELLSTICK_DOWN):
|
||||||
last_sent_value = self.tellstick.last_sent_value()
|
last_sent_value = self.tellstick.last_sent_value()
|
||||||
if not last_sent_value is None:
|
if last_sent_value is not None:
|
||||||
self.brightness = last_sent_value
|
self.brightness = last_sent_value
|
||||||
|
@ -9,16 +9,6 @@ import tellcore.constants as tellcore_constants
|
|||||||
|
|
||||||
def get_devices(hass, config):
|
def get_devices(hass, config):
|
||||||
""" Find and return Tellstick switches. """
|
""" Find and return Tellstick switches. """
|
||||||
return get_switches()
|
|
||||||
|
|
||||||
|
|
||||||
def devices_discovered(hass, config, info):
|
|
||||||
""" Called when a device is discovered. """
|
|
||||||
return get_switches()
|
|
||||||
|
|
||||||
|
|
||||||
def get_switches():
|
|
||||||
""" Returns the Wink switches. """
|
|
||||||
try:
|
try:
|
||||||
import tellcore.telldus as telldus
|
import tellcore.telldus as telldus
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user