python-kasa/kasa
Teemu R 3fe578cf26
async++, small powerstrip improvements (#46)
* async++, small powerstrip improvements

* use asyncclick instead of click, allows defining the commands with async def to avoid manual eventloop/asyncio.run handling
* improve powerstrip support:
  * new powerstrip api: turn_{on,off}_by_{name,index} methods
  * cli: fix on/off for powerstrip using the new apis
* add missing update()s for cli's hsv, led, temperature (fixes #43)
* prettyprint the received payloads when debug mode in use
* cli: debug mode can be activated now with '-d'

* update requirements_test.txt

* remove outdated click-datetime, replace click with asyncclick

* debug is a flag

* make smartstripplug to inherit the sysinfo from its parent, allows for simple access of general plug properties

* proper bound checking for index accesses, allow controlling the plug at index 0

* remove the mess of turn_{on,off}_by_{name,index}, get_plug_by_{name,index} are enough.

* adapt cli to use that
* allow changing the alias per index

* use f-strings consistently everywhere in the cli

* add tests for get_plug_by_{index,name}
2020-04-21 20:46:13 +02:00
..
tests async++, small powerstrip improvements (#46) 2020-04-21 20:46:13 +02:00
__init__.py Move dimmer support to its own class (#34) 2020-04-18 23:35:39 +02:00
cli.py async++, small powerstrip improvements (#46) 2020-04-21 20:46:13 +02:00
discover.py Remove sync interface, add asyncio discovery (#14) 2020-01-12 22:44:19 +01:00
protocol.py async++, small powerstrip improvements (#46) 2020-04-21 20:46:13 +02:00
smartbulb.py Remove unnecessary cache (#40) 2020-04-12 15:57:49 +02:00
smartdevice.py async++, small powerstrip improvements (#46) 2020-04-21 20:46:13 +02:00
smartdimmer.py Move dimmer support to its own class (#34) 2020-04-18 23:35:39 +02:00
smartplug.py Move dimmer support to its own class (#34) 2020-04-18 23:35:39 +02:00
smartstrip.py async++, small powerstrip improvements (#46) 2020-04-21 20:46:13 +02:00
version.py mass rename to (python-)kasa (#1) 2019-12-18 09:11:18 +01:00