mirror of
https://github.com/python-kasa/python-kasa.git
synced 2024-12-22 19:23:34 +00:00
Add ToCs for doc pages (#380)
This commit is contained in:
parent
f493fa1dca
commit
2eecf39bae
@ -1,7 +1,7 @@
|
|||||||
Command-line usage
|
Command-line usage
|
||||||
==================
|
==================
|
||||||
|
|
||||||
The package is shipped with a console tool named kasa, please refer to ``kasa --help`` for detailed usage.
|
The package is shipped with a console tool named ``kasa``, refer to ``kasa --help`` for detailed usage.
|
||||||
The device to which the commands are sent is chosen by ``KASA_HOST`` environment variable or passing ``--host <address>`` as an option.
|
The device to which the commands are sent is chosen by ``KASA_HOST`` environment variable or passing ``--host <address>`` as an option.
|
||||||
To see what is being sent to and received from the device, specify option ``--debug``.
|
To see what is being sent to and received from the device, specify option ``--debug``.
|
||||||
|
|
||||||
|
@ -9,6 +9,9 @@ This page aims to provide some details on the design and internals of this libra
|
|||||||
You might be interested in this if you want to improve this library,
|
You might be interested in this if you want to improve this library,
|
||||||
or if you are just looking to access some information that is not currently exposed.
|
or if you are just looking to access some information that is not currently exposed.
|
||||||
|
|
||||||
|
.. contents:: Contents
|
||||||
|
:local:
|
||||||
|
|
||||||
.. _update_cycle:
|
.. _update_cycle:
|
||||||
|
|
||||||
Update Cycle
|
Update Cycle
|
||||||
|
@ -1,16 +1,11 @@
|
|||||||
Discovering devices
|
Discovering devices
|
||||||
===================
|
===================
|
||||||
|
|
||||||
.. code-block::
|
.. contents:: Contents
|
||||||
|
:local:
|
||||||
import asyncio
|
|
||||||
from kasa import Discover
|
|
||||||
|
|
||||||
devices = asyncio.run(Discover.discover())
|
|
||||||
for addr, dev in devices.items():
|
|
||||||
asyncio.run(dev.update())
|
|
||||||
print(f"{addr} >> {dev}")
|
|
||||||
|
|
||||||
|
API documentation
|
||||||
|
*****************
|
||||||
|
|
||||||
.. autoclass:: kasa.Discover
|
.. autoclass:: kasa.Discover
|
||||||
:members:
|
:members:
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
Bulbs
|
Bulbs
|
||||||
===========
|
===========
|
||||||
|
|
||||||
|
.. contents:: Contents
|
||||||
|
:local:
|
||||||
|
|
||||||
Supported features
|
Supported features
|
||||||
******************
|
******************
|
||||||
|
|
||||||
|
@ -3,6 +3,12 @@
|
|||||||
Common API
|
Common API
|
||||||
==========
|
==========
|
||||||
|
|
||||||
|
.. contents:: Contents
|
||||||
|
:local:
|
||||||
|
|
||||||
|
SmartDevice class
|
||||||
|
*****************
|
||||||
|
|
||||||
The basic functionalities of all supported devices are accessible using the common :class:`SmartDevice` base class.
|
The basic functionalities of all supported devices are accessible using the common :class:`SmartDevice` base class.
|
||||||
|
|
||||||
The property accesses use the data obtained before by awaiting :func:`SmartDevice.update()`.
|
The property accesses use the data obtained before by awaiting :func:`SmartDevice.update()`.
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
Dimmers
|
Dimmers
|
||||||
=======
|
=======
|
||||||
|
|
||||||
|
.. contents:: Contents
|
||||||
|
:local:
|
||||||
|
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
Feel free to open a pull request to improve the documentation!
|
Feel free to open a pull request to improve the documentation!
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
Light strips
|
Light strips
|
||||||
============
|
============
|
||||||
|
|
||||||
|
.. contents:: Contents
|
||||||
|
:local:
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
Feel free to open a pull request to improve the documentation!
|
Feel free to open a pull request to improve the documentation!
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
Plugs
|
Plugs
|
||||||
=====
|
=====
|
||||||
|
|
||||||
|
.. contents:: Contents
|
||||||
|
:local:
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
Feel free to open a pull request to improve the documentation!
|
Feel free to open a pull request to improve the documentation!
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
Smart strips
|
Smart strips
|
||||||
============
|
============
|
||||||
|
|
||||||
|
.. contents:: Contents
|
||||||
|
:local:
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
Feel free to open a pull request to improve the documentation!
|
Feel free to open a pull request to improve the documentation!
|
||||||
|
Loading…
Reference in New Issue
Block a user