mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
changed bearer_token to access_token in conf file
This commit is contained in:
parent
dccd9f562f
commit
cd896627ea
@ -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
|
||||||
|
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user