1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Add Integration Quality Scale to manifest (#30547)

This commit is contained in:
Franck Nijhof
2020-01-07 17:21:56 +01:00
committed by Paulus Schoutsen
parent a4c830b5e4
commit e18426051b
2 changed files with 13 additions and 0 deletions

View File

@@ -6,6 +6,13 @@ from voluptuous.humanize import humanize_error
from .model import Integration
SUPPORTED_QUALITY_SCALES = [
"gold",
"internal",
"platinum",
"silver",
]
MANIFEST_SCHEMA = vol.Schema(
{
vol.Required("domain"): str,
@@ -17,6 +24,7 @@ MANIFEST_SCHEMA = vol.Schema(
),
vol.Optional("homekit"): vol.Schema({vol.Optional("models"): [str]}),
vol.Required("documentation"): str,
vol.Optional("quality_scale"): vol.In(SUPPORTED_QUALITY_SCALES),
vol.Required("requirements"): [str],
vol.Required("dependencies"): [str],
vol.Optional("after_dependencies"): [str],