python-kasa/kasa/smart/modules
Teemu R. 6a86ffbbba
Add flake8-pytest-style (PT) for ruff (#1105)
This will catch common issues with pytest code.

* Use `match` when using `pytest.raises()` for base exception types like
`TypeError` or `ValueError`
* Use tuples for `parametrize()`
* Enforces `pytest.raises()` to contain simple statements, using `noqa`
to skip this on some cases for now.
* Fixes incorrect exception type (valueerror instead of typeerror) for
iotdimmer.
* Adds check valid types for `iotbulb.set_hsv` and `color` smart module.
* Consolidate exception messages for common interface modules.
2024-08-30 17:30:07 +02:00
..
__init__.py Add support for T100 motion sensor (#1079) 2024-07-24 15:48:33 +02:00
alarm.py Allow erroring modules to recover (#1080) 2024-07-30 19:23:07 +01:00
autooff.py Allow erroring modules to recover (#1080) 2024-07-30 19:23:07 +01:00
batterysensor.py Allow erroring modules to recover (#1080) 2024-07-30 19:23:07 +01:00
brightness.py Allow erroring modules to recover (#1080) 2024-07-30 19:23:07 +01:00
childdevice.py Update docs with more howto examples (#968) 2024-06-19 09:53:40 +01:00
cloud.py Allow erroring modules to recover (#1080) 2024-07-30 19:23:07 +01:00
color.py Add flake8-pytest-style (PT) for ruff (#1105) 2024-08-30 17:30:07 +02:00
colortemperature.py Enable setting brightness with color temp for smart devices (#1091) 2024-07-31 15:52:27 +01:00
contactsensor.py Make module names consistent and remove redundant module casting (#909) 2024-05-11 19:28:18 +01:00
devicemodule.py Handle module errors more robustly and add query params to light preset and transition (#1036) 2024-07-04 08:02:50 +01:00
energy.py Allow erroring modules to recover (#1080) 2024-07-30 19:23:07 +01:00
fan.py Allow erroring modules to recover (#1080) 2024-07-30 19:23:07 +01:00
firmware.py Add flake8-logging (LOG) and flake8-logging-format (G) for ruff (#1104) 2024-08-30 16:13:14 +02:00
frostprotection.py Handle module errors more robustly and add query params to light preset and transition (#1036) 2024-07-04 08:02:50 +01:00
humiditysensor.py Allow erroring modules to recover (#1080) 2024-07-30 19:23:07 +01:00
led.py Update smart request parameter handling (#1061) 2024-07-23 19:02:20 +01:00
light.py Enable setting brightness with color temp for smart devices (#1091) 2024-07-31 15:52:27 +01:00
lighteffect.py Add flake8-pytest-style (PT) for ruff (#1105) 2024-08-30 17:30:07 +02:00
lightpreset.py Update smart request parameter handling (#1061) 2024-07-23 19:02:20 +01:00
lightstripeffect.py Fix iot light effect brightness (#1092) 2024-07-31 15:58:48 +01:00
lighttransition.py Allow erroring modules to recover (#1080) 2024-07-30 19:23:07 +01:00
motionsensor.py Add support for T100 motion sensor (#1079) 2024-07-24 15:48:33 +02:00
reportmode.py Allow erroring modules to recover (#1080) 2024-07-30 19:23:07 +01:00
temperaturecontrol.py Allow erroring modules to recover (#1080) 2024-07-30 19:23:07 +01:00
temperaturesensor.py Allow erroring modules to recover (#1080) 2024-07-30 19:23:07 +01:00
time.py Require explicit feature type (#1006) 2024-06-25 18:30:36 +02:00
waterleaksensor.py Require explicit feature type (#1006) 2024-06-25 18:30:36 +02:00