Reconnecting client: optional keep-alive & timeout

- lirc timeout, to reliably detect disconnect
This commit is contained in:
Martin Bauer
2020-07-13 11:32:38 +00:00
parent feeefbe987
commit 349861ad7c
3 changed files with 66 additions and 31 deletions

View File

@@ -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.