From cd896627ead34726bde09100bc81a292b8d4c033 Mon Sep 17 00:00:00 2001 From: John McLaughlin Date: Tue, 16 Dec 2014 00:12:59 -0800 Subject: [PATCH] changed bearer_token to access_token in conf file --- homeassistant/components/light/wink.py | 3 +-- homeassistant/components/switch/wink.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/light/wink.py b/homeassistant/components/light/wink.py index 4691ae7cf62..be384b2f90f 100644 --- a/homeassistant/components/light/wink.py +++ b/homeassistant/components/light/wink.py @@ -28,7 +28,7 @@ def get_devices(hass, config): "and `git submodule update`?")) return [] - token = config["bearer_token"] + token = config["access_token"] pywink.set_bearer_token(token) switches = pywink.get_bulbs() @@ -39,7 +39,6 @@ def get_devices(hass, config): return [WinkLight(switch) for switch in switches] - class WinkLight(ToggleDevice): """ Represents a Lifx light diff --git a/homeassistant/components/switch/wink.py b/homeassistant/components/switch/wink.py index c80824ef5bc..7ee33b55974 100644 --- a/homeassistant/components/switch/wink.py +++ b/homeassistant/components/switch/wink.py @@ -21,7 +21,7 @@ def get_devices(hass, config): "and `git submodule update`?")) return [] - token = config["bearer_token"] + token = config["access_token"] pywink.set_bearer_token(token) switches = pywink.get_switches()