Make scripts executable

This commit is contained in:
Andre Basche 2023-04-22 23:36:31 +02:00
parent e24b48d672
commit 9370cf84b8
2 changed files with 8 additions and 0 deletions

2
scripts/generate_translation.py Normal file → Executable file
View file

@ -1,3 +1,5 @@
#!/usr/bin/env python
import asyncio import asyncio
import json import json
import re import re

View file

@ -1,6 +1,12 @@
#!/usr/bin/env python
import re import re
import sys
from pathlib import Path from pathlib import Path
if __name__ == "__main__":
sys.path.insert(0, str(Path(__file__).parent.parent))
from custom_components.hon.binary_sensor import BINARY_SENSORS from custom_components.hon.binary_sensor import BINARY_SENSORS
from custom_components.hon.button import BUTTONS from custom_components.hon.button import BUTTONS
from custom_components.hon.number import NUMBERS from custom_components.hon.number import NUMBERS