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()