[music.mpd] Adjust default poll_interval: 5 -> 20 seconds.

This commit is contained in:
Fabio Manganiello 2024-03-04 01:06:49 +01:00
parent 288344a348
commit a3b6d411e4
1 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ class MusicMpdPlugin(MusicPlugin, RunnablePlugin):
self, self,
host: str, host: str,
port: int = 6600, port: int = 6600,
poll_interval: Optional[float] = 5.0, poll_interval: Optional[float] = 20.0,
**kwargs, **kwargs,
): ):
""" """
@ -42,7 +42,7 @@ class MusicMpdPlugin(MusicPlugin, RunnablePlugin):
:param port: MPD port (default: 6600). :param port: MPD port (default: 6600).
:param poll_interval: Polling interval in seconds. If set, the plugin :param poll_interval: Polling interval in seconds. If set, the plugin
will poll the MPD server for status updates and trigger change will poll the MPD server for status updates and trigger change
events when required. Default: 5 seconds. events when required. Default: 20 seconds.
""" """
super().__init__(poll_interval=poll_interval, **kwargs) super().__init__(poll_interval=poll_interval, **kwargs)
self.conf = MpdConfig(host=host, port=port) self.conf = MpdConfig(host=host, port=port)