Update addFav.py

This commit is contained in:
SpudGunMan
2025-10-12 15:07:27 -07:00
parent b5d610728c
commit ef28341cdb
+2 -1
View File
@@ -111,7 +111,8 @@ if favList:
for fav in favList:
try:
handleFavoriteNode(fav['deviceID'], fav['nodeID'], True)
time.sleep(1)
logger.info(f"addFav: waiting 15 seconds to avoid API rate limits")
time.sleep(15) # wait to avoid API rate limits
except Exception as e:
logger.error(f"addFav: Error adding favorite node {fav['nodeID']} to device {fav['deviceID']}: {e}")
else: