You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running wizard with an older devices.json that is missing some of the newer keys (e.g. model) causes an error:
Traceback (most recent call last):
File "/Users/jason/miniconda3/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/Users/jason/miniconda3/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/Users/jason/Code/tinytuya/tinytuya/__main__.py", line 76, in <module>
wizard.wizard(color=color, retries=retries, forcescan=force, quicklist=assume_yes)
File "/Users/jason/Code/tinytuya/tinytuya/wizard.py", line 174, in wizard
tuyadevices = cloud.getdevices( False, oldlist=old_devices, include_map=include_map )
File "/Users/jason/Code/tinytuya/tinytuya/Cloud.py", line 490, in getdevices
if k in dev and k != 'icon' and k != 'last_ip' and old[k] != dev[k]:
KeyError: 'model'
This is due to the older devices.json not having the model key for some devices. Easy fix for line 490 -
Running wizard with an older
devices.json
that is missing some of the newer keys (e.g.model
) causes an error:This is due to the older
devices.json
not having the model key for some devices. Easy fix for line 490 -The text was updated successfully, but these errors were encountered: