Increased default poll_interval for system plugin to 60 seconds.

This commit is contained in:
Fabio Manganiello 2023-04-23 00:42:44 +02:00
parent a72c32cb00
commit 763d9e06ec
Signed by untrusted user: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -71,8 +71,8 @@ class SystemPlugin(SensorPlugin, EntityManager):
""" """
def __init__(self, *args, **kwargs): def __init__(self, *args, poll_interval: Optional[float] = 60, **kwargs):
super().__init__(*args, **kwargs) super().__init__(*args, poll_interval=poll_interval, **kwargs)
self.__cpu_info: Optional[CpuInfo] = None self.__cpu_info: Optional[CpuInfo] = None
@property @property