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`?")) "and `git submodule update`?"))
return [] return []
token = config["bearer_token"] token = config["access_token"]
pywink.set_bearer_token(token) pywink.set_bearer_token(token)
switches = pywink.get_bulbs() switches = pywink.get_bulbs()
@ -39,7 +39,6 @@ def get_devices(hass, config):
return [WinkLight(switch) for switch in switches] return [WinkLight(switch) for switch in switches]
class WinkLight(ToggleDevice): class WinkLight(ToggleDevice):
""" """
Represents a Lifx light Represents a Lifx light

View File

@ -21,7 +21,7 @@ def get_devices(hass, config):
"and `git submodule update`?")) "and `git submodule update`?"))
return [] return []
token = config["bearer_token"] token = config["access_token"]
pywink.set_bearer_token(token) pywink.set_bearer_token(token)
switches = pywink.get_switches() switches = pywink.get_switches()