python-kasa/kasa/modules
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
..
__init__.py Export modules & make sphinx happy (#334) 2022-04-06 01:41:08 +02:00
ambientlight.py Implement motion & ambient light sensor modules for dimmers (#278) 2022-04-05 19:27:46 +02:00
antitheft.py Add module support & query their information during update cycle (#243) 2022-04-05 19:27:46 +02:00
cloud.py Add support for pydantic v2 using v1 shims (#504) 2023-08-28 17:48:49 +02:00
countdown.py Add module support & query their information during update cycle (#243) 2022-04-05 19:27:46 +02:00
emeter.py Avoid linear search for emeter realtime and emeter_today (#622) 2024-01-05 02:01:00 +01:00
module.py Use ruff and ruff format (#534) 2023-10-29 23:15:42 +01:00
motion.py Add inactivity setting for the motion module (#453) 2023-05-17 20:08:05 +02:00
rulemodule.py Add support for pydantic v2 using v1 shims (#504) 2023-08-28 17:48:49 +02:00
schedule.py Add module support & query their information during update cycle (#243) 2022-04-05 19:27:46 +02:00
time.py move get_time{zone} out from smartdevice + some minor cleanups 2022-04-05 19:27:46 +02:00
usage.py Avoid linear search for emeter realtime and emeter_today (#622) 2024-01-05 02:01:00 +01:00