python-kasa/kasa
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
..
cli Return raw discovery result in cli discover raw (#1342) 2024-12-10 22:42:14 +00:00
interfaces Add common Thermostat module (#977) 2024-11-26 09:37:15 +00:00
iot Add LinkieTransportV2 and basic IOT.IPCAMERA support (#1270) 2024-12-07 00:06:58 +01:00
protocols Rename smartcamera to smartcam (#1300) 2024-11-23 09:07:47 +01:00
smart Improve overheat reporting (#1335) 2024-12-11 01:01:36 +01:00
smartcam Fix update errors on hubs with unsupported children (#1344) 2024-12-06 11:01:44 +00:00
transports Add LinkieTransportV2 and basic IOT.IPCAMERA support (#1270) 2024-12-07 00:06:58 +01:00
__init__.py Provide alternative camera urls (#1316) 2024-12-05 16:49:35 +00:00
cachedzoneinfo.py Remove support for python <3.11 (#1273) 2024-11-18 18:46:36 +00:00
credentials.py Add LinkieTransportV2 and basic IOT.IPCAMERA support (#1270) 2024-12-07 00:06:58 +01:00
device_factory.py Add LinkieTransportV2 and basic IOT.IPCAMERA support (#1270) 2024-12-07 00:06:58 +01:00
device_type.py Add ssltransport for robovacs (#943) 2024-12-01 18:06:48 +01:00
device.py Exclude __getattr__ for deprecated attributes from type checkers (#1294) 2024-11-21 18:40:13 +00:00
deviceconfig.py Add LinkieTransportV2 and basic IOT.IPCAMERA support (#1270) 2024-12-07 00:06:58 +01:00
discover.py Return raw discovery result in cli discover raw (#1342) 2024-12-10 22:42:14 +00:00
emeterstatus.py Enable ruff check for ANN (#1139) 2024-11-10 18:55:13 +00:00
exceptions.py Remove support for python <3.11 (#1273) 2024-11-18 18:46:36 +00:00
feature.py Improve overheat reporting (#1335) 2024-12-11 01:01:36 +01:00
httpclient.py Remove support for python <3.11 (#1273) 2024-11-18 18:46:36 +00:00
json.py Return raw discovery result in cli discover raw (#1342) 2024-12-10 22:42:14 +00:00
module.py Add common Thermostat module (#977) 2024-11-26 09:37:15 +00:00
modulemapping.py Create common interfaces for remaining device types (#895) 2024-05-10 19:29:28 +01:00
modulemapping.pyi Remove support for python <3.11 (#1273) 2024-11-18 18:46:36 +00:00
py.typed Add py.typed to flag that the package is typed (#251) 2021-11-15 18:21:24 +01:00