commit
f8175adbdc
2 changed files with 1 additions and 2 deletions
|
@ -12,6 +12,7 @@ from tellcore.library import DirectCallbackDispatcher
|
||||||
REQUIREMENTS = ['tellcore-py==1.0.4']
|
REQUIREMENTS = ['tellcore-py==1.0.4']
|
||||||
|
|
||||||
|
|
||||||
|
# pylint: disable=unused-argument
|
||||||
def setup_platform(hass, config, add_devices_callback, discovery_info=None):
|
def setup_platform(hass, config, add_devices_callback, discovery_info=None):
|
||||||
""" Find and return Tellstick lights. """
|
""" Find and return Tellstick lights. """
|
||||||
|
|
||||||
|
@ -36,7 +37,6 @@ def setup_platform(hass, config, add_devices_callback, discovery_info=None):
|
||||||
if switch.methods(tellcore_constants.TELLSTICK_DIM):
|
if switch.methods(tellcore_constants.TELLSTICK_DIM):
|
||||||
lights.append(TellstickLight(switch))
|
lights.append(TellstickLight(switch))
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def _device_event_callback(id_, method, data, cid):
|
def _device_event_callback(id_, method, data, cid):
|
||||||
""" Called from the TelldusCore library to update one device """
|
""" Called from the TelldusCore library to update one device """
|
||||||
for light_device in lights:
|
for light_device in lights:
|
||||||
|
|
|
@ -48,7 +48,6 @@ def setup_platform(hass, config, add_devices_callback, discovery_info=None):
|
||||||
switches.append(
|
switches.append(
|
||||||
TellstickSwitchDevice(switch, signal_repetitions))
|
TellstickSwitchDevice(switch, signal_repetitions))
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def _device_event_callback(id_, method, data, cid):
|
def _device_event_callback(id_, method, data, cid):
|
||||||
""" Called from the TelldusCore library to update one device """
|
""" Called from the TelldusCore library to update one device """
|
||||||
for switch_device in switches:
|
for switch_device in switches:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue