python-kasa/kasa
J. Nick Koston 554fe0a96e
Avoid linear search for emeter realtime and emeter_today (#622)
* Avoid linear search for emeter realtime and emeter_today

Most of the time the data we want is at the end of the
list so we now search backwards to avoid having to
scale all the data and throw most of it away

* more tweaks

* coverage

* coverage

* preen

* coverage

* branch cover
2024-01-05 02:01:00 +01:00
..
modules Avoid linear search for emeter realtime and emeter_today (#622) 2024-01-05 02:01:00 +01:00
tapo Check the ct range for color temp support (#619) 2024-01-04 19:28:48 +01:00
tests Avoid linear search for emeter realtime and emeter_today (#622) 2024-01-05 02:01:00 +01:00
__init__.py Add DeviceConfig to allow specifying configuration parameters (#569) 2023-12-29 20:17:15 +01:00
aestransport.py Fix cli discover bug with None username/password (#615) 2024-01-04 19:17:48 +01:00
cli.py Fix cli discover bug with None username/password (#615) 2024-01-04 19:17:48 +01:00
credentials.py Cleanup credentials handling (#605) 2024-01-03 19:26:52 +01:00
device_factory.py Add support for KS205 and KS225 wall switches (#594) 2024-01-03 19:31:42 +01:00
device_type.py Add support for tapo bulbs (#558) 2023-12-05 20:07:10 +01:00
deviceconfig.py Allow serializing and passing of credentials_hashes in DeviceConfig (#607) 2024-01-03 22:46:08 +01:00
discover.py Allow serializing and passing of credentials_hashes in DeviceConfig (#607) 2024-01-03 22:46:08 +01:00
effects.py Add effect support for light strips (#293) 2022-03-21 22:10:12 +01:00
emeterstatus.py Use ruff and ruff format (#534) 2023-10-29 23:15:42 +01:00
exceptions.py Cleanup credentials handling (#605) 2024-01-03 19:26:52 +01:00
iotprotocol.py Add DeviceConfig to allow specifying configuration parameters (#569) 2023-12-29 20:17:15 +01:00
json.py Use orjson when already installed or with speedups extra (#466) 2023-06-18 01:03:04 +02:00
klaptransport.py Fix cli discover bug with None username/password (#615) 2024-01-04 19:17:48 +01:00
protocol.py Allow serializing and passing of credentials_hashes in DeviceConfig (#607) 2024-01-03 22:46:08 +01:00
py.typed Add py.typed to flag that the package is typed (#251) 2021-11-15 18:21:24 +01:00
smartbulb.py Add DeviceConfig to allow specifying configuration parameters (#569) 2023-12-29 20:17:15 +01:00
smartdevice.py Allow serializing and passing of credentials_hashes in DeviceConfig (#607) 2024-01-03 22:46:08 +01:00
smartdimmer.py Add DeviceConfig to allow specifying configuration parameters (#569) 2023-12-29 20:17:15 +01:00
smartlightstrip.py Add DeviceConfig to allow specifying configuration parameters (#569) 2023-12-29 20:17:15 +01:00
smartplug.py Add DeviceConfig to allow specifying configuration parameters (#569) 2023-12-29 20:17:15 +01:00
smartprotocol.py Add DeviceConfig to allow specifying configuration parameters (#569) 2023-12-29 20:17:15 +01:00
smartstrip.py Add DeviceConfig to allow specifying configuration parameters (#569) 2023-12-29 20:17:15 +01:00