Skip to content

Commit

Permalink
short sleep (home-assistant#3115)
Browse files Browse the repository at this point in the history
  • Loading branch information
nkgilley authored and balloob committed Sep 14, 2016
1 parent 68def21 commit 2c01a67
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions homeassistant/components/media_player/gpmdp.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import json
import os
import socket
import time

import voluptuous as vol

Expand Down Expand Up @@ -232,6 +233,7 @@ def send_gpmdp_msg(self, namespace, method, with_id=True):

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
Expand Down

0 comments on commit 2c01a67

Please sign in to comment.