python-kasa/pyHS100/tests
Teemu R ef2e21ff69
Fix emeter support for newer HS110 firmwares (#107)
* Add support for new-style emeter

This commit adds a straightforward dict-extending container,
which converts between the old and new keys of the get_emeter_realtime()
Furthermore the unit tests are converted to base on HS100
instead of HS110.

This is the first step to fix #103, other emeter-using functionality
has not yet been converted, only getting the current consumption.

* fix a couple of linting issues

* Convert new-style emeter values also for get_emeter_daily() and get_emeter_monthly()

* Adds a new 'kwh' parameter for those calls, which defaults to True
* This changes the behavior of bulbs emeter reporting, use False if you prefer the preciser values
2018-06-16 21:16:35 +02:00
..
__init__.py Make tests runnable without device (#24) 2017-01-08 06:45:47 +08:00
fakes.py Fix emeter support for newer HS110 firmwares (#107) 2018-06-16 21:16:35 +02:00
test_bulb.py Fix emeter support for newer HS110 firmwares (#107) 2018-06-16 21:16:35 +02:00
test_protocol.py Refactor and drop py2 support (#49) 2017-04-14 14:24:58 +02:00
test_pyHS100.py Fix emeter support for newer HS110 firmwares (#107) 2018-06-16 21:16:35 +02:00