reference constants from tellive package

pull/803/head
Erik 2015-12-27 18:49:11 +01:00
parent f10ecb2a8d
commit efbaf47dc7
1 changed files with 4 additions and 5 deletions

View File

@ -96,12 +96,11 @@ class TelldusLiveData(object):
def _request(self, what, **params):
""" Sends a request to the tellstick live API """
from tellcore.constants import (
TELLSTICK_TURNON, TELLSTICK_TURNOFF, TELLSTICK_TOGGLE)
from tellive.live import const
supported_methods = TELLSTICK_TURNON \
| TELLSTICK_TURNOFF \
| TELLSTICK_TOGGLE
supported_methods = const.TELLSTICK_TURNON \
| const.TELLSTICK_TURNOFF \
| const.TELLSTICK_TOGGLE
default_params = {'supportedMethods': supported_methods,
"includeValues": 1,