1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2026-05-08 17:08:36 +01:00

Using job limit ONCE for integrity (#3613)

This commit is contained in:
Pascal Vizeli
2022-05-02 11:28:56 +02:00
committed by GitHub
parent e390a3e5d5
commit f684c8f0dd
+1 -3
View File
@@ -1,7 +1,6 @@
"""Fetch last versions from webserver."""
from __future__ import annotations
from datetime import timedelta
import logging
from ..const import (
@@ -101,8 +100,7 @@ class Security(FileConfiguration, CoreSysAttributes):
@Job(
conditions=[JobCondition.INTERNET_SYSTEM],
on_condition=SecurityJobError,
limit=JobExecutionLimit.THROTTLE_WAIT,
throttle_period=timedelta(seconds=300),
limit=JobExecutionLimit.ONCE,
)
async def integrity_check(self) -> IntegrityResult:
"""Run a full system integrity check of the platform.