mirror of
https://github.com/home-assistant/core.git
synced 2025-07-30 02:38:10 +02:00
Validate requirements format in hassfest (#55094)
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
This commit is contained in:
@ -24,18 +24,19 @@ from . import (
|
||||
from .model import Config, Integration
|
||||
|
||||
INTEGRATION_PLUGINS = [
|
||||
json,
|
||||
codeowners,
|
||||
config_flow,
|
||||
dependencies,
|
||||
dhcp,
|
||||
json,
|
||||
manifest,
|
||||
mqtt,
|
||||
requirements,
|
||||
services,
|
||||
ssdp,
|
||||
translations,
|
||||
zeroconf,
|
||||
dhcp,
|
||||
usb,
|
||||
zeroconf,
|
||||
]
|
||||
HASS_PLUGINS = [
|
||||
coverage,
|
||||
@ -103,9 +104,6 @@ def main():
|
||||
|
||||
plugins = [*INTEGRATION_PLUGINS]
|
||||
|
||||
if config.requirements:
|
||||
plugins.append(requirements)
|
||||
|
||||
if config.specific_integrations:
|
||||
integrations = {}
|
||||
|
||||
@ -122,7 +120,11 @@ def main():
|
||||
try:
|
||||
start = monotonic()
|
||||
print(f"Validating {plugin.__name__.split('.')[-1]}...", end="", flush=True)
|
||||
if plugin is requirements and not config.specific_integrations:
|
||||
if (
|
||||
plugin is requirements
|
||||
and config.requirements
|
||||
and not config.specific_integrations
|
||||
):
|
||||
print()
|
||||
plugin.validate(integrations, config)
|
||||
print(f" done in {monotonic() - start:.2f}s")
|
||||
|
Reference in New Issue
Block a user