diff --git a/tinytuya/Cloud.py b/tinytuya/Cloud.py index 75511991..249d80ee 100644 --- a/tinytuya/Cloud.py +++ b/tinytuya/Cloud.py @@ -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: