mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-06 10:44:04 +00:00
Update documentation structure and start migrating to markdown (#934)
Starts structuring the documentation library usage into Tutorials, Guides, Explanations and Reference. Continues migrating new docs from rst to markdown. Extends the test framework discovery mocks to allow easy writing and testing of code examples.
This commit is contained in:
@@ -105,7 +105,7 @@ class IotDevice(Device):
|
||||
All devices provide several informational properties:
|
||||
|
||||
>>> dev.alias
|
||||
Kitchen
|
||||
Bedroom Lamp Plug
|
||||
>>> dev.model
|
||||
HS110(EU)
|
||||
>>> dev.rssi
|
||||
|
@@ -23,7 +23,7 @@ class IotLightStrip(IotBulb):
|
||||
>>> strip = IotLightStrip("127.0.0.1")
|
||||
>>> asyncio.run(strip.update())
|
||||
>>> print(strip.alias)
|
||||
KL430 pantry lightstrip
|
||||
Bedroom Lightstrip
|
||||
|
||||
Getting the length of the strip:
|
||||
|
||||
|
@@ -32,7 +32,7 @@ class IotPlug(IotDevice):
|
||||
>>> plug = IotPlug("127.0.0.1")
|
||||
>>> asyncio.run(plug.update())
|
||||
>>> plug.alias
|
||||
Kitchen
|
||||
Bedroom Lamp Plug
|
||||
|
||||
Setting the LED state:
|
||||
|
||||
|
@@ -55,7 +55,7 @@ class IotStrip(IotDevice):
|
||||
>>> strip = IotStrip("127.0.0.1")
|
||||
>>> asyncio.run(strip.update())
|
||||
>>> strip.alias
|
||||
TP-LINK_Power Strip_CF69
|
||||
Bedroom Power Strip
|
||||
|
||||
All methods act on the whole strip:
|
||||
|
||||
|
Reference in New Issue
Block a user