mirror of
https://github.com/python-kasa/python-kasa.git
synced 2026-01-19 10:12:42 +00:00
Add device discovery (#25)
* add (untested) discover mode * Keep discovery and normal communication separate, uppercase magic consts This sepearates the earlier test code for discovering devices, and adds 5 sec timeout for gathering responses from potential devices. This commit also uppercases magic constants. Discovery & communication tested with HS110. * update readme with example how to discover devices, pep8ify
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
from __future__ import absolute_import
|
||||
from __future__ import unicode_literals
|
||||
from pyHS100.pyHS100 import SmartPlug, SmartPlugException
|
||||
from pyHS100.pyHS100 import SmartPlug, TPLinkSmartHomeProtocol, SmartPlugException
|
||||
|
||||
Reference in New Issue
Block a user