short sleep (#3115)
This commit is contained in:
1 parent
68def21615
commit
2c01a67446
1 file changed
+2
@@ -8,6 +8,7 @@ import logging
|
||||
import json
|
||||
import os
|
||||
import socket
|
||||
import time
|
||||
|
||||
import voluptuous as vol
|
||||
|
||||
@@ -232,6 +233,7 @@ class GPMDP(MediaPlayerDevice):
|
||||
|
||||
def update(self):
|
||||
"""Get the latest details from the player."""
|
||||
time.sleep(1)
|
||||
playstate = self.send_gpmdp_msg('playback', 'getPlaybackState')
|
||||
if playstate is None:
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user