add a small example script to show library usage (#90)

* add a small example script to show library usage

* asyncio.run++
This commit is contained in:
Teemu R
2020-07-20 16:42:37 +02:00
committed by GitHub
parent d30d00a3ff
commit 6844166c0d
2 changed files with 28 additions and 0 deletions

View File

@@ -128,6 +128,7 @@ class SmartDevice:
* :class:`SmartBulb`
* :class:`SmartStrip`
* :class:`SmartDimmer`
* :class:`SmartLightStrip`
To initialize, you have to await :func:`update()` at least once.
This will allow accessing the properties using the exposed properties.