From 9370cf84b8b4cf472c3f941ca97720fefe08a894 Mon Sep 17 00:00:00 2001 From: Andre Basche Date: Sat, 22 Apr 2023 23:36:31 +0200 Subject: [PATCH] Make scripts executable --- scripts/generate_translation.py | 2 ++ scripts/sensor_docs.py | 6 ++++++ 2 files changed, 8 insertions(+) mode change 100644 => 100755 scripts/generate_translation.py diff --git a/scripts/generate_translation.py b/scripts/generate_translation.py old mode 100644 new mode 100755 index 90079f5..976fcc3 --- a/scripts/generate_translation.py +++ b/scripts/generate_translation.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python + import asyncio import json import re diff --git a/scripts/sensor_docs.py b/scripts/sensor_docs.py index f7dbafd..eded777 100755 --- a/scripts/sensor_docs.py +++ b/scripts/sensor_docs.py @@ -1,6 +1,12 @@ +#!/usr/bin/env python + import re +import sys 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.button import BUTTONS from custom_components.hon.number import NUMBERS