reference constants from tellive package
parent
f10ecb2a8d
commit
efbaf47dc7
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue