Commit graph

16 commits

Author SHA1 Message Date
Robert Resch
c4c422de79
Skip logging deprecated constant if the calling integration couldn't be indentified ()
* Add option to log only if a integreation is detected for a deprecated constant

* Require param

* Add test that log entry is not created

* typo
2023-12-21 23:19:40 +01:00
Ville Skyttä
24b1e01d71
Update Ruff to 0.1.8, avoid linter/formatter conflicts ()
* Disable Ruff rules that may conflict with the formatter

* Upgrade Ruff to 0.1.8

- https://github.com/astral-sh/ruff/releases/tag/v0.1.7
- https://github.com/astral-sh/ruff/releases/tag/v0.1.8

* Format with Ruff 0.1.8
2023-12-20 23:55:09 +01:00
Robert Resch
5a3db078d5
Use patch.dict in deprecation test "test_check_if_deprecated_constant" () 2023-12-20 16:06:26 +01:00
Robert Resch
0e0fd39603
Add dir_with_deprecated_constants function to deprecation helper () 2023-12-19 16:37:21 +01:00
Robert Resch
a4ccd6e13b
Deprecate binary sensor device class constants ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-12-19 12:45:32 +01:00
Erik Montnemery
db51a8e1f7
Allow passing breaks_in_ha_version to deprecation helper decorators () 2023-12-04 11:52:10 +01:00
Erik Montnemery
3478666973
Use loader.async_suggest_report_issue in deprecation helper () 2023-10-06 09:51:08 +02:00
Erik Montnemery
2627abb9ef
Improve test coverage of deprecation helper () 2023-10-03 20:57:24 +02:00
Erik Montnemery
ab2de18f8f
Refactor frame.get_integration_frame () 2023-10-03 19:21:27 +02:00
epenet
5f25b71df7
Add type hints to core tests () 2023-02-20 11:42:56 +01:00
Joakim Sørensen
b1c2cde40b
Changes to filename and path validation ()
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-01-26 15:53:21 +01:00
Franck Nijhof
65cf2fcb6f
Drop asynctest () 2021-01-01 22:31:56 +01:00
Paulus Schoutsen
2af984917e
Use asynctest-mock in most places ()
* Use asynctest-mock in most places

* Fix broken patch in pilight
2020-05-03 11:27:19 -07:00
Bas Nijholt
f60125b5c9 Sort imports according to PEP8 for 'tests' () 2019-12-09 16:52:24 +01:00
Paulus Schoutsen
4de97abc3a Black 2019-07-31 12:25:30 -07:00
Adam Mills
7dd7f509ca Add tests for deprecation helpers () 2017-05-06 10:10:48 -07:00