mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-11-09 02:49:43 +00:00
It seems that the codebase is not formatted with the latest ruff version. This PR reformats the codebase with ruff 0.5.7.
25 lines
591 B
Python
25 lines
591 B
Python
"""Security constants."""
|
|
|
|
from enum import StrEnum
|
|
|
|
import attr
|
|
|
|
|
|
class ContentTrustResult(StrEnum):
|
|
"""Content trust result enum."""
|
|
|
|
PASS = "pass"
|
|
ERROR = "error"
|
|
FAILED = "failed"
|
|
UNTESTED = "untested"
|
|
|
|
|
|
@attr.s
|
|
class IntegrityResult:
|
|
"""Result of a full integrity check."""
|
|
|
|
supervisor: ContentTrustResult = attr.ib(default=ContentTrustResult.UNTESTED)
|
|
core: ContentTrustResult = attr.ib(default=ContentTrustResult.UNTESTED)
|
|
plugins: dict[str, ContentTrustResult] = attr.ib(default={})
|
|
addons: dict[str, ContentTrustResult] = attr.ib(default={})
|