1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2025-12-24 20:35:55 +00:00

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>
This commit is contained in:
Joakim Sørensen
2021-03-12 11:32:56 +01:00
committed by GitHub
parent a52713611c
commit 73849b7468
20 changed files with 276 additions and 74 deletions

View File

@@ -8,6 +8,13 @@ from supervisor.resolution.checks.free_space import CheckFreeSpace
from supervisor.resolution.const import IssueType
async def test_base(coresys: CoreSys):
"""Test check basics."""
free_space = CheckFreeSpace(coresys)
assert free_space.slug == "free_space"
assert free_space.enabled
async def test_check(coresys: CoreSys):
"""Test check."""
free_space = CheckFreeSpace(coresys)