Skip to content

Commit 6c4bc6e

Browse files
authored
Merge pull request #73 from sh00t2kill/update-interval-randomness
Set update interval to something random to avoid 404s
2 parents b8532ad + 9b873bf commit 6c4bc6e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

custom_components/linktap/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ def __init__(self, hass, linker, conf, tap_id):
110110
hass,
111111
_LOGGER,
112112
name=DOMAIN,
113-
update_interval=timedelta(seconds=13),
113+
update_interval=timedelta(seconds=random.randint(10,14), milliseconds=random.randint(0,1000))
114+
#update_interval=timedelta(seconds=13),
114115
)
115116
self.tap_api = linker
116117
self.conf = conf

0 commit comments

Comments
 (0)