Commit Graph

53 Commits (f5e1fa6a21273b243a8ebb59e5424c1011640388)

Author SHA1 Message Date
epenet 6278d36981
Use HassKey in diagnostics (#136627) 2025-01-28 13:49:49 +01:00
Marc Mueller f0452e9ba0
Update mypy dev 1.11.0a8 (#120032) 2024-06-21 13:15:18 +02:00
epenet 97f6b578c8
Enforce namespace import in core (#118235) 2024-05-27 14:03:00 +02:00
J. Nick Koston 508cc2e5a1
Remove @ from codeowners when downloading diagnostics (#117825)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2024-05-21 09:32:07 +02:00
J. Nick Koston 149120b749
Add setup time detail to diagnostics (#117766) 2024-05-20 09:52:28 +02:00
Marc Mueller 26a599ad11
Use PEP 695 for function annotations (1) (#117658) 2024-05-18 11:45:54 +02:00
Joakim Sørensen 012509f683
Add documentation link for custom integrations in diagnostics (#115336)
* Add documentation link for custom integrations in diagnostics

* Enable custom integrations in test_download_diagnostics
2024-04-10 11:36:25 +02:00
Joost Lekkerkerker 6bb4e7d62c
Bump ruff to 0.3.4 (#112690)
Co-authored-by: Sid <27780930+autinerd@users.noreply.github.com>
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-26 00:02:16 +01:00
Marc Mueller 0e3945ca6c
Add empty line after module docstring [d-f] (#112698) 2024-03-08 14:15:26 +01:00
Marc Mueller f3594c543d
Use KEY_HASS [a-g] (#112609) 2024-03-07 18:09:20 +01:00
J. Nick Koston 0d4c82b54d
Convert Integration platforms processors where nothing is awaited to callbacks (#110825)
Convert Integration platforms processors where nothing is awaited callbacks
2024-02-17 20:49:47 -05:00
Michael 9bca09a513
Remove obsolete .txt extension from diagnostics download (#108028) 2024-01-15 09:17:05 +01:00
Marc Mueller a70ec64408
Update mypy to 1.7.0 (#103800) 2023-11-11 23:31:04 +01:00
Franck Nijhof 30058297cf
Migrate backported StrEnum to built-in StrEnum (#97101) 2023-07-23 23:19:24 +02:00
Erik Montnemery ef68f2c3ff
Add empty config schema to integrations d-h (#93645) 2023-05-29 21:00:08 +02:00
J. Nick Koston cc12698f26
Make diagnostics dataclasses sloted (#93600)
Now available since our minimum python version is 3.10

Saves a tiny bit of ram
2023-05-27 20:04:39 -04:00
epenet ba23816a0c
Inverse json import logic (#88099)
* Fix helpers and util

* Adjust components

* Move back errors

* Add report

* mypy

* mypy

* Assert deprecation messages

* Move test_json_loads_object

* Adjust tests

* Fix rebase

* Adjust pylint plugin

* Fix plugin

* Adjust references

* Adjust backup tests
2023-02-16 11:37:57 +01:00
Erik Montnemery 87420e949d
Sort manifests 2 (#87023) 2023-02-08 20:16:39 +01:00
Franck Nijhof 939eef3b28
Remove translations from Core (#87543)
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-02-06 15:06:43 +01:00
epenet 1deb4c68f3
Adjust diagnostics return types (#85525)
* Adjust diagnostics return types

* Replace dict with Mapping
2023-01-13 09:17:54 +01:00
Erik Montnemery 155db2f2e1
Simplify diagnostics.DownloadDiagnosticsView (#83116)
* Refactor diagnostics.DownloadDiagnosticsView

* Simplify
2022-12-02 15:33:55 +01:00
Erik Montnemery bf7e50eb32
Enable strict typing of diagnostics (#83053)
* Enable strict typing of diagnostics

* Reformat to avoid line break
2022-12-02 11:21:02 +01:00
GitHub Action 230b50d099 [ci skip] Translation update 2022-11-29 00:26:01 +00:00
Franck Nijhof 2b27cfdabb
Set system & entity integration types (#79593) 2022-10-04 10:36:42 -04:00
GitHub Action 32a2999b85 [ci skip] Translation update 2022-08-06 00:24:46 +00:00
Marc Mueller 9b9b553521
Disable no-self-use [pylint] (#70641)
* Disable no-self-use

* Remove disable comments
2022-04-25 07:41:01 -07:00
ollo69 0876239927
Do not redact diagnostics empty key (#69160) 2022-04-03 13:17:08 +02:00
Marc Mueller be7ef6115c
Make TypeVars private (1) (#68205) 2022-03-17 18:52:38 +01:00
GitHub Action dc31f420ed [ci skip] Translation update 2022-03-12 00:17:47 +00:00
GitHub Action bdcdf52225 [ci skip] Translation update 2022-02-23 00:20:00 +00:00
Marc Mueller 45d8d04c40
Use assignment expressions [other] (#66882) 2022-02-19 17:22:51 +01:00
Marc Mueller ac50248938
Add type ignore error codes [other] (#66781) 2022-02-17 23:10:25 -08:00
GitHub Action 855076fed9 [ci skip] Translation update 2022-02-17 00:14:03 +00:00
Paulus Schoutsen 5da923c341
Protect state.as_dict from mutation (#65693) 2022-02-04 14:45:25 -08:00
GitHub Action b2f0882e67 [ci skip] Translation update 2022-02-04 00:13:58 +00:00
epenet cc7680b0c3
Adjust pylint plugin to enforce diagnostics type hints (#64976)
* Adjust pylint plugin to enforce diagnostics type hints

* Adjust return_type

* Set return_type to UNDEFINED

* Use Any for the expected data

Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-02-03 19:22:43 +01:00
GitHub Action ca7d4234e1 [ci skip] Translation update 2022-01-31 00:14:28 +00:00
Joakim Sørensen 11ad1589fa
Use .json.txt for diagnostics download filetype (#65236) 2022-01-30 13:09:36 -08:00
Aaron Bach cc6b0cc843
Ensure diagnostics redaction can handle lists of lists (#65170)
* Ensure diagnostics redaction can handle lists of lists

* Code review

* Update homeassistant/components/diagnostics/util.py

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>

* Code review

* Typing

* Revert "Typing"

This reverts commit 8a57f772ca.

* New typing attempt

* Revert "New typing attempt"

This reverts commit e26e4aae69.

* Fix typing

* Fix typing again

* Add tests

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2022-01-29 13:30:15 -07:00
GitHub Action 5e62ff95b9 [ci skip] Translation update 2022-01-29 00:13:03 +00:00
Joakim Sørensen cda2c73f2f
Use Integration properties for custom integration listing in diagnostics (#64908) 2022-01-25 14:47:27 +01:00
GitHub Action 7d31f570e2 [ci skip] Translation update 2022-01-24 00:13:45 +00:00
Franck Nijhof 52e169db02
Diagnostics extended info adjustment (#64752) 2022-01-23 11:32:39 +01:00
Michael a56bfe012f
Enhancements for diagnostics platform (#64670) 2022-01-23 10:15:23 +01:00
GitHub Action 9098c71cd4 [ci skip] Translation update 2022-01-22 00:13:08 +00:00
Paulus Schoutsen 520ba0a82e
Introduce new redact helper (#64579) 2022-01-20 23:02:47 +01:00
Raman Gupta 24c733b271
Pass device entry to async_get_device_diagnostics instead of device_id (#64501) 2022-01-20 01:19:09 -05:00
Raman Gupta 8b3fe0a2d9
Add support for device diagnostics (#64344)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-01-19 20:48:32 -08:00
GitHub Action e9e9852e05 [ci skip] Translation update 2022-01-20 00:15:19 +00:00
Franck Nijhof 944f2c9745
Add redacted constant in diagnostics (#64473) 2022-01-19 22:51:03 +01:00