changed bearer_token to access_token in conf file
This commit is contained in:
parent
dccd9f562f
commit
cd896627ea
2 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue