forked from platypush/platypush
Fixed some documentation glitches in switchbot
.
This commit is contained in:
parent
f9ce4b75e8
commit
10955dad72
1 changed files with 7 additions and 15 deletions
|
@ -36,31 +36,23 @@ class SwitchbotPlugin(
|
||||||
SwitchEntityManager,
|
SwitchEntityManager,
|
||||||
):
|
):
|
||||||
"""
|
"""
|
||||||
Plugin to interact with the devices registered to a Switchbot
|
Plugin to interact with the devices registered to a `Switchbot`_
|
||||||
(https://www.switch-bot.com/) account/hub.
|
account/hub.
|
||||||
|
|
||||||
The difference between this plugin and
|
|
||||||
:class:`platypush.plugins.switchbot.bluetooth.SwitchbotBluetoothPlugin` is
|
|
||||||
that the latter acts like a Bluetooth hub/bridge that interacts directly
|
|
||||||
with your Switchbot devices, while this plugin requires the devices to be
|
|
||||||
connected to a Switchbot Hub and it controls them through your cloud
|
|
||||||
account.
|
|
||||||
|
|
||||||
In order to use this plugin:
|
In order to use this plugin:
|
||||||
|
|
||||||
- Set up a Switchbot Hub and configure your devices through the
|
- Set up a Switchbot Hub and configure your devices through the
|
||||||
Switchbot app.
|
Switchbot app.
|
||||||
- Follow the steps on the `Switchbot API repo
|
- Follow the steps on `get started page`_ to get an API token from the app.
|
||||||
<https://github.com/OpenWonderLabs/SwitchBotAPI#getting-started>`_ to
|
|
||||||
get an API token from the app.
|
.. _get started page: https://github.com/OpenWonderLabs/SwitchBotAPI#getting-started
|
||||||
|
.. _Switchbot: https://www.switch-bot.com/
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, api_token: str, **kwargs):
|
def __init__(self, api_token: str, **kwargs):
|
||||||
"""
|
"""
|
||||||
:param api_token: API token (see
|
:param api_token: API token (see `get started page`_).
|
||||||
`Getting started with the Switchbot API
|
|
||||||
<https://github.com/OpenWonderLabs/SwitchBotAPI#getting-started>`_).
|
|
||||||
"""
|
"""
|
||||||
super().__init__(**kwargs)
|
super().__init__(**kwargs)
|
||||||
self._api_token = api_token
|
self._api_token = api_token
|
||||||
|
|
Loading…
Reference in a new issue