Skip to content

Commit

Permalink
fix: fix validate-format
Browse files Browse the repository at this point in the history
  • Loading branch information
topsworld committed Dec 10, 2024
1 parent 99e89d7 commit 0cffda9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 28 deletions.
22 changes: 0 additions & 22 deletions custom_components/xiaomi_home/test/rule_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,28 +94,6 @@ def main():
if not spec_filter(load_json(f"{source_dir}/spec_filter.json")):
print(script_name, "spec_filter FAIL")
sys.exit(1)
if not nested_2_dict_str_str(load_json(
f"{source_dir}/std_ex_actions.json")):
print(script_name, "std_ex_actions.json FAIL")
sys.exit(1)
if not nested_2_dict_str_str(load_json(
f"{source_dir}/std_ex_devices.json")):
print(script_name, "std_ex_devices.json FAIL")
sys.exit(1)
if not nested_2_dict_str_str(load_json(f"{source_dir}/std_ex_events.json")):
print(script_name, "std_ex_events.json FAIL")
sys.exit(1)
if not nested_2_dict_str_str(load_json(
f"{source_dir}/std_ex_properties.json")):
print(script_name, "std_ex_properties.json FAIL")
sys.exit(1)
if not nested_2_dict_str_str(load_json(
f"{source_dir}/std_ex_services.json")):
print(script_name, "std_ex_services.json FAIL")
sys.exit(1)
if not nested_2_dict_str_str(load_json(f"{source_dir}/std_ex_values.json")):
print(script_name, "std_ex_values.json FAIL")
sys.exit(1)

source_dir = "../miot/i18n"
if not nested_3_dict_str_str(load_json(f"{source_dir}/de.json")):
Expand Down
6 changes: 0 additions & 6 deletions custom_components/xiaomi_home/test/test_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@ export source_dir="../miot/specs"
python3 json_format.py $source_dir/bool_trans.json
python3 json_format.py $source_dir/multi_lang.json
python3 json_format.py $source_dir/spec_filter.json
python3 json_format.py $source_dir/std_ex_actions.json
python3 json_format.py $source_dir/std_ex_devices.json
python3 json_format.py $source_dir/std_ex_events.json
python3 json_format.py $source_dir/std_ex_properties.json
python3 json_format.py $source_dir/std_ex_services.json
python3 json_format.py $source_dir/std_ex_values.json
export source_dir="../miot/i18n"
python3 json_format.py $source_dir/de.json
python3 json_format.py $source_dir/en.json
Expand Down

0 comments on commit 0cffda9

Please sign in to comment.