mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-01-23 13:17:06 +00:00
10 lines
220 B
Python
10 lines
220 B
Python
|
import logging
|
||
|
from pprint import pprint as pp
|
||
|
|
||
|
from pyHS100 import TPLinkSmartHomeProtocol
|
||
|
logging.basicConfig(level=logging.DEBUG)
|
||
|
|
||
|
for dev in TPLinkSmartHomeProtocol.discover():
|
||
|
print("Found device!")
|
||
|
pp(dev)
|