mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Add link to docs
This commit is contained in:
parent
da31b54d06
commit
9162149598
@ -4,7 +4,7 @@ homeassistant.components.sensor.wink
|
|||||||
Support for Wink sensors.
|
Support for Wink sensors.
|
||||||
|
|
||||||
For more details about the wink component, please refer to the documentation
|
For more details about the wink component, please refer to the documentation
|
||||||
at https://home-assistant.io/components/wink.html
|
at https://home-assistant.io/components/sensor.wink.html
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
@ -25,8 +25,8 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
|||||||
|
|
||||||
if token is None:
|
if token is None:
|
||||||
logging.getLogger(__name__).error(
|
logging.getLogger(__name__).error(
|
||||||
"Missing wink access_token - "
|
"Missing wink access_token. "
|
||||||
"get one at https://winkbearertoken.appspot.com/")
|
"Get one at https://winkbearertoken.appspot.com/")
|
||||||
return
|
return
|
||||||
|
|
||||||
pywink.set_bearer_token(token)
|
pywink.set_bearer_token(token)
|
||||||
@ -35,7 +35,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
|||||||
|
|
||||||
|
|
||||||
class WinkSensorDevice(Entity):
|
class WinkSensorDevice(Entity):
|
||||||
""" Represents a wink sensor. """
|
""" Represents a Wink sensor. """
|
||||||
|
|
||||||
def __init__(self, wink):
|
def __init__(self, wink):
|
||||||
self.wink = wink
|
self.wink = wink
|
||||||
|
Loading…
x
Reference in New Issue
Block a user