Remove silver integrations from NO_DIAGNOSTICS (#117840)
This commit is contained in:
parent
d5e0ffc4d8
commit
54d048fb11
1 changed files with 13 additions and 8 deletions
|
@ -124,12 +124,10 @@ NO_DIAGNOSTICS = [
|
||||||
"hyperion",
|
"hyperion",
|
||||||
"modbus",
|
"modbus",
|
||||||
"nightscout",
|
"nightscout",
|
||||||
"point",
|
|
||||||
"pvpc_hourly_pricing",
|
"pvpc_hourly_pricing",
|
||||||
"risco",
|
"risco",
|
||||||
"smarttub",
|
"smarttub",
|
||||||
"songpal",
|
"songpal",
|
||||||
"tellduslive",
|
|
||||||
"vizio",
|
"vizio",
|
||||||
"yeelight",
|
"yeelight",
|
||||||
]
|
]
|
||||||
|
@ -385,12 +383,19 @@ def validate_manifest(integration: Integration, core_components_dir: Path) -> No
|
||||||
f"{quality_scale} integration does not implement diagnostics",
|
f"{quality_scale} integration does not implement diagnostics",
|
||||||
)
|
)
|
||||||
|
|
||||||
if domain in NO_DIAGNOSTICS and (integration.path / "diagnostics.py").exists():
|
if domain in NO_DIAGNOSTICS:
|
||||||
integration.add_error(
|
if quality_scale and QualityScale[quality_scale.upper()] < QualityScale.GOLD:
|
||||||
"manifest",
|
integration.add_error(
|
||||||
"Implements diagnostics and can be "
|
"manifest",
|
||||||
"removed from NO_DIAGNOSTICS in script/hassfest/manifest.py",
|
"{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:
|
if not integration.core:
|
||||||
validate_version(integration)
|
validate_version(integration)
|
||||||
|
|
Loading…
Add table
Reference in a new issue