Reconnecting client: optional keep-alive & timeout
- lirc timeout, to reliably detect disconnect
This commit is contained in:
@@ -441,9 +441,6 @@ class SqueezeBoxDevice(MediaPlayerDevice):
|
||||
"""Flag media player features that are supported."""
|
||||
return SUPPORT_SQUEEZEBOX
|
||||
|
||||
def turn_off(self):
|
||||
self.call_method('power', '0')
|
||||
|
||||
def volume_up(self):
|
||||
self.call_method('mixer', 'volume', '+5')
|
||||
|
||||
@@ -479,6 +476,9 @@ class SqueezeBoxDevice(MediaPlayerDevice):
|
||||
def turn_on(self):
|
||||
self.call_method('power', '1')
|
||||
|
||||
def turn_off(self):
|
||||
self.call_method('power', '0')
|
||||
|
||||
def play_media(self, media_type, media_id, **kwargs):
|
||||
"""
|
||||
Send the play_media command to the media player.
|
||||
|
||||
Reference in New Issue
Block a user