mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2025-04-02 07:45:31 +08:00
fix: fix validate-format
This commit is contained in:
parent
99e89d78e0
commit
0cffda9a5c
@ -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")):
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user