mirror of
https://github.com/python-kasa/python-kasa.git
synced 2024-12-23 03:33:35 +00:00
0b2e371e79
* move SmartDeviceException to SmartDevice, and remove types.py completely. fixes #94 * do not import skipIf anymore
21 lines
718 B
Python
21 lines
718 B
Python
"""
|
|
This module provides a way to interface with TP-Link's smart home devices,
|
|
such as smart plugs (HS1xx), wall switches (HS2xx), and light bulbs (LB1xx).
|
|
|
|
All common, shared functionalities are available through `SmartDevice` class::
|
|
|
|
x = SmartDevice("192.168.1.1")
|
|
print(x.sys_info)
|
|
|
|
For device type specific actions `SmartBulb` or `SmartPlug` must be used instead.
|
|
|
|
Module-specific errors are raised as `SmartDeviceException` and are expected
|
|
to be handled by the user of the library.
|
|
"""
|
|
# flake8: noqa
|
|
from .smartdevice import SmartDevice, SmartDeviceException
|
|
from .smartplug import SmartPlug
|
|
from .smartbulb import SmartBulb
|
|
from .protocol import TPLinkSmartHomeProtocol
|
|
from .discover import Discover
|