python-kasa/tests
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
..
fixtures Add KS200 (US) IOT Fixture and P115 (US) Smart Fixture (#1355) 2024-12-10 06:14:17 +00:00
iot Follow main package structure for tests (#1317) 2024-11-28 17:56:20 +01:00
protocols Follow main package structure for tests (#1317) 2024-11-28 17:56:20 +01:00
smart Improve overheat reporting (#1335) 2024-12-11 01:01:36 +01:00
smartcam Provide alternative camera urls (#1316) 2024-12-05 16:49:35 +00:00
transports Add LinkieTransportV2 and basic IOT.IPCAMERA support (#1270) 2024-12-07 00:06:58 +01:00
__init__.py Move tests folder to top level of project (#1242) 2024-11-11 10:11:31 +00:00
conftest.py Replace custom deviceconfig serialization with mashumaru (#1274) 2024-11-20 08:35:32 +00:00
device_fixtures.py Fix line endings in device_fixtures.py (#1361) 2024-12-10 08:37:57 +00:00
discovery_fixtures.py Do not error when accessing smart device_type before update (#1319) 2024-12-05 09:14:45 +00:00
fakeprotocol_iot.py Migrate RuleModule to mashumaro (#1283) 2024-11-20 14:59:32 +00:00
fakeprotocol_smart.py Add common Thermostat module (#977) 2024-11-26 09:37:15 +00:00
fakeprotocol_smartcam.py Rename smartcamera to smartcam (#1300) 2024-11-23 09:07:47 +01:00
fixtureinfo.py Rename smartcamera to smartcam (#1300) 2024-11-23 09:07:47 +01:00
test_bulb.py Follow main package structure for tests (#1317) 2024-11-28 17:56:20 +01:00
test_childdevice.py Run tests with caplog in a single worker (#1304) 2024-11-23 12:20:51 +00:00
test_cli.py Return raw discovery result in cli discover raw (#1342) 2024-12-10 22:42:14 +00:00
test_common_modules.py Add common Thermostat module (#977) 2024-11-26 09:37:15 +00:00
test_device_factory.py Add ssltransport for robovacs (#943) 2024-12-01 18:06:48 +01:00
test_device_type.py Move tests folder to top level of project (#1242) 2024-11-11 10:11:31 +00:00
test_device.py Add LinkieTransportV2 and basic IOT.IPCAMERA support (#1270) 2024-12-07 00:06:58 +01:00
test_deviceconfig.py Replace custom deviceconfig serialization with mashumaru (#1274) 2024-11-20 08:35:32 +00:00
test_devtools.py Rename smartcamera to smartcam (#1300) 2024-11-23 09:07:47 +01:00
test_discovery.py Run tests with caplog in a single worker (#1304) 2024-11-23 12:20:51 +00:00
test_feature.py Run tests with caplog in a single worker (#1304) 2024-11-23 12:20:51 +00:00
test_httpclient.py Remove support for python <3.11 (#1273) 2024-11-18 18:46:36 +00:00
test_plug.py Follow main package structure for tests (#1317) 2024-11-28 17:56:20 +01:00
test_readme_examples.py Remove support for python <3.11 (#1273) 2024-11-18 18:46:36 +00:00
test_strip.py Move tests folder to top level of project (#1242) 2024-11-11 10:11:31 +00:00