python-kasa/docs/source/reference.md
Steven B be5202ccb7
Make device initialisation easier by reducing required imports (#936)
Adds username and password arguments to discovery to remove the need to import Credentials.
Creates TypeAliases in Device for connection configuration classes and DeviceType.
Using the API with these changes will only require importing either Discover or Device
depending on whether using Discover.discover() or Device.connect() to 
initialize and interact with the API.
2024-06-03 19:06:54 +01:00

2.6 KiB

API Reference

Discover

.. autoclass:: kasa.Discover
    :members:

Device

.. autoclass:: Device
    :members:
    :undoc-members:

Device Config

.. autoclass:: Credentials
    :members:
    :undoc-members:
.. autoclass:: DeviceConfig
    :members:
    :undoc-members:
.. autoclass:: kasa.DeviceFamily
    :members:
    :undoc-members:
.. autoclass:: kasa.DeviceConnection
    :members:
    :undoc-members:
.. autoclass:: kasa.DeviceEncryption
    :members:
    :undoc-members:

Modules and Features

.. autoclass:: kasa.Module
    :noindex:
    :members:
    :inherited-members:
    :undoc-members:
.. automodule:: kasa.interfaces
    :noindex:
    :members:
    :inherited-members:
    :undoc-members:
.. autoclass:: kasa.Feature
    :noindex:
    :members:
    :inherited-members:
    :undoc-members:

Protocols and transports

.. autoclass:: kasa.protocol.BaseProtocol
    :members:
    :inherited-members:
    :undoc-members:
.. autoclass:: kasa.iotprotocol.IotProtocol
    :members:
    :inherited-members:
    :undoc-members:
.. autoclass:: kasa.smartprotocol.SmartProtocol
    :members:
    :inherited-members:
    :undoc-members:
.. autoclass:: kasa.protocol.BaseTransport
    :members:
    :inherited-members:
    :undoc-members:
.. autoclass:: kasa.xortransport.XorTransport
    :members:
    :inherited-members:
    :undoc-members:
.. autoclass:: kasa.klaptransport.KlapTransport
    :members:
    :inherited-members:
    :undoc-members:
.. autoclass:: kasa.klaptransport.KlapTransportV2
    :members:
    :inherited-members:
    :undoc-members:
.. autoclass:: kasa.aestransport.AesTransport
    :members:
    :inherited-members:
    :undoc-members:

Errors and exceptions

.. autoclass:: kasa.exceptions.KasaException
    :members:
    :undoc-members:
.. autoclass:: kasa.exceptions.DeviceError
    :members:
    :undoc-members:
.. autoclass:: kasa.exceptions.AuthenticationError
    :members:
    :undoc-members:
.. autoclass:: kasa.exceptions.UnsupportedDeviceError
    :members:
    :undoc-members:
.. autoclass:: kasa.exceptions.TimeoutError
    :members:
    :undoc-members: