From 763d9e06ec737825e30ad84ccc57788eff459f8a Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sun, 23 Apr 2023 00:42:44 +0200 Subject: [PATCH] Increased default `poll_interval` for `system` plugin to 60 seconds. --- platypush/plugins/system/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platypush/plugins/system/__init__.py b/platypush/plugins/system/__init__.py index b200bccdd..8d50e8392 100644 --- a/platypush/plugins/system/__init__.py +++ b/platypush/plugins/system/__init__.py @@ -71,8 +71,8 @@ class SystemPlugin(SensorPlugin, EntityManager): """ - def __init__(self, *args, **kwargs): - super().__init__(*args, **kwargs) + def __init__(self, *args, poll_interval: Optional[float] = 60, **kwargs): + super().__init__(*args, poll_interval=poll_interval, **kwargs) self.__cpu_info: Optional[CpuInfo] = None @property