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): def _request(self, what, **params):
""" Sends a request to the tellstick live API """ """ Sends a request to the tellstick live API """
from tellcore.constants import ( from tellive.live import const
TELLSTICK_TURNON, TELLSTICK_TURNOFF, TELLSTICK_TOGGLE)
supported_methods = TELLSTICK_TURNON \ supported_methods = const.TELLSTICK_TURNON \
| TELLSTICK_TURNOFF \ | const.TELLSTICK_TURNOFF \
| TELLSTICK_TOGGLE | const.TELLSTICK_TOGGLE
default_params = {'supportedMethods': supported_methods, default_params = {'supportedMethods': supported_methods,
"includeValues": 1, "includeValues": 1,