Files
default/scripts/sort.py
T
Joakim Sørensen 001a81b77f New Github actions (#481)
* 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
2020-05-26 17:53:04 +02:00

19 lines
388 B
Python

import json
categories = [
"blacklist",
"appdaemon",
"integration",
"netdaemon",
"plugin",
"python_script",
"theme",
]
for category in categories:
with open(category, "r") as cat_file:
content = json.loads(cat_file.read())
with open(category, "w") as cat_file:
cat_file.write(json.dumps(sorted(content, key=str.casefold), indent=2))