Mike Degatano
0636e49fe2
Enable mypy part 1 (addons and api) ( #5759 )
...
* Fix mypy issues in addons
* Fix mypy issues in api
* fix docstring
* Brackets instead of get with default
2025-03-25 15:06:35 -04:00
Mike Degatano
324b059970
Move write of core state to executor ( #5720 )
2025-03-04 17:49:53 +01:00
Mike Degatano
d8101ddba8
Use status 404 in more places when appropriate ( #5480 )
2024-12-17 11:18:32 +01:00
Stefan Agner
f6faa18409
Bump pre-commit ruff to 0.5.7 and reformat ( #5242 )
...
It seems that the codebase is not formatted with the latest ruff
version. This PR reformats the codebase with ruff 0.5.7.
2024-08-13 20:53:56 +02:00
Mike Degatano
7fd6dce55f
Migrate to Ruff for lint and format ( #4852 )
...
* Migrate to Ruff for lint and format
* Fix pylint issues
* DBus property sets into normal awaitable methods
* Fix tests relying on separate tasks in connect
* Fixes from feedback
2024-02-05 11:37:39 -05:00
Mike Degatano
df030e6209
No bool conversion in resolution test ( #3826 )
2022-08-26 16:42:45 +02:00
Mike Degatano
2c5bb3f714
Fix suggestion test to be order agnostic ( #3822 )
2022-08-25 16:06:47 -04:00
Mike Degatano
d5f9fcfdc7
Fire events on issue changes ( #3818 )
...
* Fire events on issue changes
* API includes if suggestion has autofix
2022-08-25 11:42:31 +02:00
Joakim Sørensen
419f603571
Rename snapshot -> backup ( #2940 )
2021-07-27 10:06:09 +02:00
Pascal Vizeli
b1232c0d8d
Resolution: API call for run check manual ( #2719 )
2021-03-15 10:33:06 +01:00
Pascal Vizeli
55382d000b
Revert "Tweak check API path" ( #2718 )
...
This reverts commit e30171746bb6170fa0a8897b73c54baf4844c740.
2021-03-15 10:16:32 +01:00
Pascal Vizeli
e30171746b
Tweak check API path ( #2714 )
2021-03-12 11:42:24 +01:00
Joakim Sørensen
73849b7468
Check management ( #2703 )
...
* Check management
* Add test
* Don't allow disable core_security
* options and decorator
* streamline config handling
* streamline v2
* fix logging
* Add tests
* Fix test
* cleanup v1
* fix api
* Add more test
* Expose option also for cli
* address comments from Paulus
* Address second comment
* Update supervisor/resolution/checks/base.py
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
* fix lint
* Fix black
Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-03-12 11:32:56 +01:00
Pascal Vizeli
2040102e21
Handle Unhealthy like Unsupported ( #2255 )
...
* Handle Unhealthy like Unsupported
* Add tests
* Add unhealthy to sentry
* Add test
2020-11-14 16:16:00 +01:00
Pascal Vizeli
7a9aac491e
Use /info for resolution API ( #2136 )
2020-10-16 13:07:02 +02:00
Pascal Vizeli
d119e99001
Resolution: extend type and context ( #2130 )
...
* Resolution: extend type and context
* fix property
* add helper
* fix api
* fix tests
* Fix patch
* finish tests
* Update supervisor/resolution/const.py
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
* Update supervisor/resolution/const.py
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
* Fix type
* fix lint
* Update supervisor/api/resolution.py
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
* Update supervisor/resolution/__init__.py
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
* Update API & add more tests
* Update supervisor/api/resolution.py
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
* Update supervisor/resolution/__init__.py
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
* Update supervisor/resolution/__init__.py
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
* fix black
* remove azure ci
* fix test
* fix tests
* fix tests
* fix tests p2
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
2020-10-16 12:22:32 +02:00
Joakim Sørensen
02e72726a5
Add issues/suggestion to resolution center / start with diskspace ( #2125 )
...
Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch>
2020-10-14 17:14:25 +02:00
Joakim Sørensen
028b170cff
Add resolution manager and unsupported flags ( #2124 )
...
* Add unsupported reason flags
* Restore test_network.py
* Add Resolution manager object
* fix import
2020-10-13 12:54:17 +02:00