Skip to content

Commit

Permalink
Fix logic to ignore icon and last_ip
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonacox committed Jul 4, 2023
1 parent 7d5c479 commit 7bba52e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tinytuya/Cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ def getdevices(self, verbose=False, oldlist=[], include_map=False):
continue
is_same = True
for k in DEVICEFILE_SAVE_VALUES:
if (k not in old) or (k in dev and k != 'icon' and k != 'last_ip' and old[k] != dev[k]):
if k in dev and k != 'icon' and k != 'last_ip' and (k not in old or old[k] != dev[k]):
is_same = False
break
if not is_same:
Expand Down

0 comments on commit 7bba52e

Please sign in to comment.