Add integrity check (#3608)

* Add integrity check

* add API test

* add tests

* tests for add-ons
This commit is contained in:
Pascal Vizeli
2022-04-30 10:14:43 +02:00
committed by GitHub
parent 1c75b515e0
commit ca1f764080
20 changed files with 361 additions and 485 deletions

View File

@@ -471,3 +471,14 @@ class BackupError(HassioError):
class HomeAssistantBackupError(BackupError, HomeAssistantError):
"""Raise if an error during Home Assistant Core backup is happening."""
# Security
class SecurityError(HassioError):
"""Raise if an error during security checks are happening."""
class SecurityJobError(SecurityError, JobException):
"""Raise on Security job error."""