Browse Source

cleanup(utils): fix include order after relative path change

Jason Rumney 1 tháng trước cách đây
mục cha
commit
ae5bfb31a4

+ 2 - 2
util/best_match.py

@@ -3,10 +3,10 @@
 import json
 import json
 import sys
 import sys
 
 
-from .common_funcs import FakeDevice
-
 from custom_components.tuya_local.helpers.device_config import possible_matches
 from custom_components.tuya_local.helpers.device_config import possible_matches
 
 
+from .common_funcs import FakeDevice
+
 
 
 def main() -> int:
 def main() -> int:
     dps = json.loads(" ".join(sys.argv[1:]))
     dps = json.loads(" ".join(sys.argv[1:]))

+ 2 - 2
util/config_match.py

@@ -3,10 +3,10 @@
 import json
 import json
 import sys
 import sys
 
 
-from .common_funcs import FakeDevice
-
 from custom_components.tuya_local.helpers.device_config import possible_matches
 from custom_components.tuya_local.helpers.device_config import possible_matches
 
 
+from .common_funcs import FakeDevice
+
 
 
 def main() -> int:
 def main() -> int:
     dps = json.loads(" ".join(sys.argv[1:]))
     dps = json.loads(" ".join(sys.argv[1:]))

+ 2 - 2
util/duplicates.py

@@ -2,10 +2,10 @@
 
 
 import sys
 import sys
 
 
-from .common_funcs import load_config, make_sample_dps
-
 from custom_components.tuya_local.helpers.device_config import possible_matches
 from custom_components.tuya_local.helpers.device_config import possible_matches
 
 
+from .common_funcs import load_config, make_sample_dps
+
 
 
 def main():
 def main():
     for filename in sys.argv[1:]:
     for filename in sys.argv[1:]:

+ 2 - 2
util/match_against.py

@@ -3,10 +3,10 @@
 import json
 import json
 import sys
 import sys
 
 
-from .common_funcs import FakeDevice, load_config, make_sample_dps
-
 from custom_components.tuya_local.helpers.device_config import _typematch
 from custom_components.tuya_local.helpers.device_config import _typematch
 
 
+from .common_funcs import FakeDevice, load_config, make_sample_dps
+
 
 
 def main() -> int:
 def main() -> int:
     rest = " ".join(sys.argv[2:])
     rest = " ".join(sys.argv[2:])

+ 2 - 2
util/untranslated_select.py

@@ -3,13 +3,13 @@
 import json
 import json
 import sys
 import sys
 
 
-from .common_funcs import FakeDevice
-
 from custom_components.tuya_local.helpers.device_config import (
 from custom_components.tuya_local.helpers.device_config import (
     TuyaDeviceConfig,
     TuyaDeviceConfig,
     available_configs,
     available_configs,
 )
 )
 
 
+from .common_funcs import FakeDevice
+
 
 
 def main() -> int:
 def main() -> int:
     with open("custom_components/tuya_local/translations/en.json", "r") as f:
     with open("custom_components/tuya_local/translations/en.json", "r") as f: