mirror of
https://github.com/alexhopeoconnor/default.git
synced 2026-10-20 09:51:29 +10:00
* Test new check * Add quote * test * test * move check * move back * use env * test multistep * test trigger * if: github.event.label.name * quotes * hassfest? * Fix clone * Update hassfest * check hassfest * Use real domain * Lmit * Test hassfest * Check domain * Fix domain * No changes * Enable on unlable * Change HACS validate * Move inputs * Add dummy integration * TEst * Move to env * Fix repo * Remove entry
24 lines
478 B
Python
24 lines
478 B
Python
from scripts.changed.category import get_category
|
|
from scripts.helpers.hacs_manifest import get_hacs_manifest
|
|
|
|
|
|
def check():
|
|
if get_category() != "integration":
|
|
print("Only integrations are checked.")
|
|
return
|
|
|
|
manifest = get_hacs_manifest()
|
|
issues = []
|
|
|
|
if manifest.get("name") is None:
|
|
issues.append("No name")
|
|
|
|
if issues:
|
|
for issue in issues:
|
|
print(issue)
|
|
exit(1)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
check()
|