[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,
host: str,
port: int = 6600,
poll_interval: Optional[float] = 5.0,
poll_interval: Optional[float] = 20.0,
**kwargs,
):
"""
@ -42,7 +42,7 @@ class MusicMpdPlugin(MusicPlugin, RunnablePlugin):
:param port: MPD port (default: 6600).
:param poll_interval: Polling interval in seconds. If set, the plugin
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)
self.conf = MpdConfig(host=host, port=port)