mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 22:27:07 +00:00
short sleep (#3115)
This commit is contained in:
parent
68def21615
commit
2c01a67446
@ -8,6 +8,7 @@ import logging
|
|||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
import socket
|
import socket
|
||||||
|
import time
|
||||||
|
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
@ -232,6 +233,7 @@ class GPMDP(MediaPlayerDevice):
|
|||||||
|
|
||||||
def update(self):
|
def update(self):
|
||||||
"""Get the latest details from the player."""
|
"""Get the latest details from the player."""
|
||||||
|
time.sleep(1)
|
||||||
playstate = self.send_gpmdp_msg('playback', 'getPlaybackState')
|
playstate = self.send_gpmdp_msg('playback', 'getPlaybackState')
|
||||||
if playstate is None:
|
if playstate is None:
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user