From 7bba52e899cbb7278aa598641182ef6683363ad1 Mon Sep 17 00:00:00 2001 From: "Jason A. Cox" Date: Tue, 4 Jul 2023 15:34:04 -0700 Subject: [PATCH] Fix logic to ignore icon and last_ip --- tinytuya/Cloud.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: