From efbaf47dc7ca402749e92c6177aa1690203a6307 Mon Sep 17 00:00:00 2001 From: Erik Date: Sun, 27 Dec 2015 18:49:11 +0100 Subject: [PATCH] reference constants from tellive package --- homeassistant/components/tellduslive.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/homeassistant/components/tellduslive.py b/homeassistant/components/tellduslive.py index d16a45c6851..3c5c135ba3f 100644 --- a/homeassistant/components/tellduslive.py +++ b/homeassistant/components/tellduslive.py @@ -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,