python-kasa/kasa/smart/modules
Teemu R. 032cd5d2cc
Some checks are pending
CI / Perform linting checks (3.13) (push) Waiting to run
CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, macos-latest, 3.11) (push) Blocked by required conditions
CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, macos-latest, 3.12) (push) Blocked by required conditions
CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, macos-latest, 3.13) (push) Blocked by required conditions
CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, ubuntu-latest, 3.11) (push) Blocked by required conditions
CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, ubuntu-latest, 3.12) (push) Blocked by required conditions
CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, ubuntu-latest, 3.13) (push) Blocked by required conditions
CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, windows-latest, 3.11) (push) Blocked by required conditions
CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, windows-latest, 3.12) (push) Blocked by required conditions
CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (false, windows-latest, 3.13) (push) Blocked by required conditions
CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (true, ubuntu-latest, 3.11) (push) Blocked by required conditions
CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (true, ubuntu-latest, 3.12) (push) Blocked by required conditions
CI / Python ${{ matrix.python-version}} on ${{ matrix.os }}${{ fromJSON('[" (extras)", ""]')[matrix.extras == ''] }} (true, ubuntu-latest, 3.13) (push) Blocked by required conditions
CodeQL checks / Analyze (python) (push) Waiting to run
Improve overheat reporting (#1335)
Different devices and different firmwares report overheated status in
different ways.
Some devices indicate support for `overheat_protect` component, but
there are devices that report `overheat_status` even when it is not
listed.
Some other devices use `overheated` boolean that was already previously
supported, but this PR adds support for much more devices that use
`overheat_status` for reporting.

The "overheated" feature is moved into its own module, and uses either
of the ways to report this information.
This will also rename `REQUIRED_KEY_ON_PARENT` to `SYSINFO_LOOKUP_KEYS`
and change its logic to check if any of the keys in the list are found
in the sysinfo.

```
tpr@lumipyry ~/c/p/tests (fix/overheated)> ag 'overheat_protect' -c|wc -l
15
tpr@lumipyry ~/c/p/tests (fix/overheated)> ag 'overheated' -c|wc -l
38
tpr@lumipyry ~/c/p/tests (fix/overheated)> ag 'overheat_status' -c|wc -l
20
```

---------

Co-authored-by: Steven B. <51370195+sdb9696@users.noreply.github.com>
2024-12-11 01:01:36 +01:00
..
__init__.py Improve overheat reporting (#1335) 2024-12-11 01:01:36 +01:00
alarm.py Enable ruff check for ANN (#1139) 2024-11-10 18:55:13 +00:00
autooff.py Enable ruff check for ANN (#1139) 2024-11-10 18:55:13 +00:00
batterysensor.py Enable ruff check for ANN (#1139) 2024-11-10 18:55:13 +00:00
brightness.py Enable ruff check for ANN (#1139) 2024-11-10 18:55:13 +00:00
childdevice.py Update docs with more howto examples (#968) 2024-06-19 09:53:40 +01:00
childprotection.py Enable ruff check for ANN (#1139) 2024-11-10 18:55:13 +00:00
cloud.py Enable ruff check for ANN (#1139) 2024-11-10 18:55:13 +00:00
color.py Enable ruff check for ANN (#1139) 2024-11-10 18:55:13 +00:00
colortemperature.py Enable ruff check for ANN (#1139) 2024-11-10 18:55:13 +00:00
contactsensor.py Improve overheat reporting (#1335) 2024-12-11 01:01:36 +01:00
devicemodule.py Enable ruff check for ANN (#1139) 2024-11-10 18:55:13 +00:00
energy.py Expose energy command to cli (#1307) 2024-11-26 09:42:55 +00:00
fan.py Allow getting Annotated features from modules (#1018) 2024-11-22 07:52:23 +00:00
firmware.py Migrate smart firmware module to mashumaro (#1276) 2024-11-20 11:54:13 +00:00
frostprotection.py Enable ruff check for ANN (#1139) 2024-11-10 18:55:13 +00:00
humiditysensor.py Enable ruff check for ANN (#1139) 2024-11-10 18:55:13 +00:00
led.py Enable ruff check for ANN (#1139) 2024-11-10 18:55:13 +00:00
light.py Update docs for the new module attributes has/get feature (#1301) 2024-11-26 08:38:20 +00:00
lighteffect.py Enable ruff check for ANN (#1139) 2024-11-10 18:55:13 +00:00
lightpreset.py Enable ruff check for ANN (#1139) 2024-11-10 18:55:13 +00:00
lightstripeffect.py Enable ruff check for ANN (#1139) 2024-11-10 18:55:13 +00:00
lighttransition.py Include duration when disabling smooth transition on/off (#1313) 2024-11-26 10:39:31 +00:00
motionsensor.py Enable ruff check for ANN (#1139) 2024-11-10 18:55:13 +00:00
overheatprotection.py Improve overheat reporting (#1335) 2024-12-11 01:01:36 +01:00
reportmode.py Enable ruff check for ANN (#1139) 2024-11-10 18:55:13 +00:00
temperaturecontrol.py Add common Thermostat module (#977) 2024-11-26 09:37:15 +00:00
temperaturesensor.py Enable ruff check for ANN (#1139) 2024-11-10 18:55:13 +00:00
thermostat.py Add common Thermostat module (#977) 2024-11-26 09:37:15 +00:00
time.py Remove support for python <3.11 (#1273) 2024-11-18 18:46:36 +00:00
triggerlogs.py Migrate triggerlogs to mashumaru (#1277) 2024-11-20 13:21:08 +00:00
waterleaksensor.py Enable ruff check for ANN (#1139) 2024-11-10 18:55:13 +00:00