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
|
||||
==================
|
||||
|
||||
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.
|
||||
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,
|
||||
or if you are just looking to access some information that is not currently exposed.
|
||||
|
||||
.. contents:: Contents
|
||||
:local:
|
||||
|
||||
.. _update_cycle:
|
||||
|
||||
Update Cycle
|
||||
|
@ -1,16 +1,11 @@
|
||||
Discovering devices
|
||||
===================
|
||||
|
||||
.. code-block::
|
||||
|
||||
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}")
|
||||
.. contents:: Contents
|
||||
:local:
|
||||
|
||||
API documentation
|
||||
*****************
|
||||
|
||||
.. autoclass:: kasa.Discover
|
||||
:members:
|
||||
|
@ -1,6 +1,9 @@
|
||||
Bulbs
|
||||
===========
|
||||
|
||||
.. contents:: Contents
|
||||
:local:
|
||||
|
||||
Supported features
|
||||
******************
|
||||
|
||||
|
@ -3,6 +3,12 @@
|
||||
Common API
|
||||
==========
|
||||
|
||||
.. contents:: Contents
|
||||
:local:
|
||||
|
||||
SmartDevice 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()`.
|
||||
|
@ -1,6 +1,10 @@
|
||||
Dimmers
|
||||
=======
|
||||
|
||||
.. contents:: Contents
|
||||
:local:
|
||||
|
||||
|
||||
.. note::
|
||||
|
||||
Feel free to open a pull request to improve the documentation!
|
||||
|
@ -1,6 +1,9 @@
|
||||
Light strips
|
||||
============
|
||||
|
||||
.. contents:: Contents
|
||||
:local:
|
||||
|
||||
.. note::
|
||||
|
||||
Feel free to open a pull request to improve the documentation!
|
||||
|
@ -1,6 +1,9 @@
|
||||
Plugs
|
||||
=====
|
||||
|
||||
.. contents:: Contents
|
||||
:local:
|
||||
|
||||
.. note::
|
||||
|
||||
Feel free to open a pull request to improve the documentation!
|
||||
|
@ -1,6 +1,9 @@
|
||||
Smart strips
|
||||
============
|
||||
|
||||
.. contents:: Contents
|
||||
:local:
|
||||
|
||||
.. note::
|
||||
|
||||
Feel free to open a pull request to improve the documentation!
|
||||
|
Loading…
Reference in New Issue
Block a user