mirror of
https://github.com/python-kasa/python-kasa.git
synced 2024-12-23 11:43:34 +00:00
8a131e1eeb
Instead of leveraging hound & travis, add an option for azure pipelines, which may replace the former in the future. This also streamlines the contributing guidelines by: * Adding pre-commit hooks to run isort, black, flake8, mypy * Adding lint environment to allow checks to be run `tox -e lint` This also contains a major cleanup to the SmartStrip handling which was due. After seeing #184 I thought I should push this in as it is for comments before the codebase diverges too much.
25 lines
749 B
Python
Executable File
25 lines
749 B
Python
Executable File
"""Python interface for TP-Link's smart home devices.
|
|
|
|
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`, `SmartPlug`, or `SmartStrip`
|
|
should be used instead.
|
|
|
|
Module-specific errors are raised as `SmartDeviceException` and are expected
|
|
to be handled by the user of the library.
|
|
"""
|
|
from .discover import Discover # noqa
|
|
from .protocol import TPLinkSmartHomeProtocol # noqa
|
|
from .smartbulb import SmartBulb # noqa
|
|
from .smartdevice import ( # noqa
|
|
DeviceType,
|
|
EmeterStatus,
|
|
SmartDevice,
|
|
SmartDeviceException,
|
|
)
|
|
from .smartplug import SmartPlug # noqa
|
|
from .smartstrip import SmartStrip # noqa
|