changed bearer_token to access_token in conf file

This commit is contained in:
John McLaughlin 2014-12-16 00:12:59 -08:00 committed by Paulus Schoutsen
parent dccd9f562f
commit cd896627ea
2 changed files with 2 additions and 3 deletions

View file

@ -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

View file

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