mirror of
https://github.com/tuya-cloudcutter/tuya-cloudcutter.git
synced 2026-02-19 21:51:18 +01:00
pull_schema - use uuid instead of chip, as chip is not generated for patched devices.
This commit is contained in:
@@ -249,6 +249,7 @@ def run_directory(directory, token=None):
|
|||||||
for file in dirListing:
|
for file in dirListing:
|
||||||
if file.endswith('_uuid.txt'):
|
if file.endswith('_uuid.txt'):
|
||||||
uuid = read_single_line_file(os.path.join(directory, file))
|
uuid = read_single_line_file(os.path.join(directory, file))
|
||||||
|
output_file_prefix = file.replace('_uuid.txt', '')
|
||||||
elif file.endswith('_auth_key.txt'):
|
elif file.endswith('_auth_key.txt'):
|
||||||
auth_key = read_single_line_file(os.path.join(directory, file))
|
auth_key = read_single_line_file(os.path.join(directory, file))
|
||||||
elif file.endswith('_product_key.txt'):
|
elif file.endswith('_product_key.txt'):
|
||||||
@@ -259,8 +260,6 @@ def run_directory(directory, token=None):
|
|||||||
software_version = read_single_line_file(os.path.join(directory, file))
|
software_version = read_single_line_file(os.path.join(directory, file))
|
||||||
elif file.endswith('_bv.txt'):
|
elif file.endswith('_bv.txt'):
|
||||||
baseline_version = read_single_line_file(os.path.join(directory, file))
|
baseline_version = read_single_line_file(os.path.join(directory, file))
|
||||||
elif file.endswith('_chip.txt'):
|
|
||||||
output_file_prefix = file.replace('_chip.txt', '')
|
|
||||||
|
|
||||||
if uuid is None:
|
if uuid is None:
|
||||||
print('[!] uuid was not found')
|
print('[!] uuid was not found')
|
||||||
|
|||||||
Reference in New Issue
Block a user