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

Drop current quality scale (#131072)

This commit is contained in:
Joost Lekkerkerker
2024-11-20 20:54:15 +01:00
committed by GitHub
parent 74f24e86c1
commit e6225e3dcc
105 changed files with 2 additions and 141 deletions

View File

@@ -111,19 +111,6 @@ NO_IOT_CLASS = [
"websocket_api",
"zone",
]
# Grandfather rule for older integrations
# https://github.com/home-assistant/developers.home-assistant/pull/1512
NO_DIAGNOSTICS = [
"dlna_dms",
"hyperion",
"nightscout",
"pvpc_hourly_pricing",
"risco",
"smarttub",
"songpal",
"vizio",
"yeelight",
]
def documentation_url(value: str) -> str:
@@ -367,28 +354,6 @@ def validate_manifest(integration: Integration, core_components_dir: Path) -> No
"manifest",
f"{quality_scale} integration does not have a code owner",
)
if (
domain not in NO_DIAGNOSTICS
and not (integration.path / "diagnostics.py").exists()
):
integration.add_error(
"manifest",
f"{quality_scale} integration does not implement diagnostics",
)
if domain in NO_DIAGNOSTICS:
if quality_scale and QualityScale[quality_scale.upper()] < QualityScale.GOLD:
integration.add_error(
"manifest",
"{quality_scale} integration should be "
"removed from NO_DIAGNOSTICS in script/hassfest/manifest.py",
)
elif (integration.path / "diagnostics.py").exists():
integration.add_error(
"manifest",
"Implements diagnostics and can be "
"removed from NO_DIAGNOSTICS in script/hassfest/manifest.py",
)
if not integration.core:
validate_version(integration)