Skip to content

Commit 1121ba1

Browse files
fix: Increase poll interval of Livolo TI0001-hygrometer and TI0001-pir to 300 seconds (#7986)
* Increase poll interval of TI0001-hygrometer and TI0001-pir to 300 seconds * Run build during prepare * Revert: Run build during prepare
1 parent b197ca0 commit 1121ba1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/devices/livolo.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ const definitions: DefinitionWithExtend[] = [
271271
if (['start', 'deviceAnnounce'].includes(type)) {
272272
await poll(device);
273273
if (!globalStore.hasValue(device, 'interval')) {
274-
const interval = setInterval(async () => await poll(device), 10 * 1000);
274+
const interval = setInterval(async () => await poll(device), 300 * 1000);
275275
globalStore.putValue(device, 'interval', interval);
276276
}
277277
}
@@ -312,7 +312,7 @@ const definitions: DefinitionWithExtend[] = [
312312
if (['start', 'deviceAnnounce'].includes(type)) {
313313
await poll(device);
314314
if (!globalStore.hasValue(device, 'interval')) {
315-
const interval = setInterval(async () => await poll(device), 60 * 1000);
315+
const interval = setInterval(async () => await poll(device), 300 * 1000);
316316
globalStore.putValue(device, 'interval', interval);
317317
}
318318
}

0 commit comments

Comments
 (0)