Set default update_check_interval to 1 day (#6523)

This commit is contained in:
John Doe
2021-03-02 19:22:39 +01:00
committed by GitHub
parent 827f9cdcdf
commit fb2ab44e3e
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ class OTAUpdate extends Extension {
if (supportsOTA) {
// When a device does a next image request, it will usually do it a few times after each other
// with only 10 - 60 seconds inbetween. It doesn't make sense to check for a new update
// each time, so this interval can be set by the user. The default is 10 minutes.
// each time, so this interval can be set by the user. The default is 1,440 minutes (one day).
const updateCheckInterval = settings.get().ota.update_check_interval * 1000 * 60;
const check = this.lastChecked.hasOwnProperty(data.device.ieeeAddr) ?
(Date.now() - this.lastChecked[data.device.ieeeAddr]) > updateCheckInterval : true;
+1 -1
View File
@@ -141,7 +141,7 @@ const defaults = {
/**
* Minimal time delta in minutes between polling third party server for potential firmware updates
*/
update_check_interval: 10,
update_check_interval: 24 * 60,
/**
* Completely disallow Zigbee devices to initiate a search for a potential firmware update.
* If set to true, only a user-initiated update search will be possible.
+1 -1
View File
File diff suppressed because one or more lines are too long