Implemented media_play & media_pause / push to version 0.7.11 of denonavr (#30421)
* Implement media_play & media_pause / push to version 0.7.11 of denonavr * fix denonavr version in requirements_test_all.txt
This commit is contained in:
parent
ef8eefc7a0
commit
b097a64010
4 changed files with 12 additions and 5 deletions
|
@ -3,7 +3,7 @@
|
||||||
"name": "Denonavr",
|
"name": "Denonavr",
|
||||||
"documentation": "https://www.home-assistant.io/integrations/denonavr",
|
"documentation": "https://www.home-assistant.io/integrations/denonavr",
|
||||||
"requirements": [
|
"requirements": [
|
||||||
"denonavr==0.7.10"
|
"denonavr==0.7.11"
|
||||||
],
|
],
|
||||||
"dependencies": [],
|
"dependencies": [],
|
||||||
"codeowners": []
|
"codeowners": []
|
||||||
|
|
|
@ -94,7 +94,6 @@ NewHost = namedtuple("NewHost", ["host", "name"])
|
||||||
|
|
||||||
def setup_platform(hass, config, add_entities, discovery_info=None):
|
def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||||
"""Set up the Denon platform."""
|
"""Set up the Denon platform."""
|
||||||
|
|
||||||
# Initialize list with receivers to be started
|
# Initialize list with receivers to be started
|
||||||
receivers = []
|
receivers = []
|
||||||
|
|
||||||
|
@ -365,9 +364,17 @@ class DenonDevice(MediaPlayerDevice):
|
||||||
return attributes
|
return attributes
|
||||||
|
|
||||||
def media_play_pause(self):
|
def media_play_pause(self):
|
||||||
"""Simulate play pause media player."""
|
"""Play or pause the media player."""
|
||||||
return self._receiver.toggle_play_pause()
|
return self._receiver.toggle_play_pause()
|
||||||
|
|
||||||
|
def media_play(self):
|
||||||
|
"""Send play command."""
|
||||||
|
return self._receiver.play()
|
||||||
|
|
||||||
|
def media_pause(self):
|
||||||
|
"""Send pause command."""
|
||||||
|
return self._receiver.pause()
|
||||||
|
|
||||||
def media_previous_track(self):
|
def media_previous_track(self):
|
||||||
"""Send previous track command."""
|
"""Send previous track command."""
|
||||||
return self._receiver.previous_track()
|
return self._receiver.previous_track()
|
||||||
|
|
|
@ -420,7 +420,7 @@ defusedxml==0.6.0
|
||||||
deluge-client==1.7.1
|
deluge-client==1.7.1
|
||||||
|
|
||||||
# homeassistant.components.denonavr
|
# homeassistant.components.denonavr
|
||||||
denonavr==0.7.10
|
denonavr==0.7.11
|
||||||
|
|
||||||
# homeassistant.components.directv
|
# homeassistant.components.directv
|
||||||
directpy==0.5
|
directpy==0.5
|
||||||
|
|
|
@ -150,7 +150,7 @@ datadog==0.15.0
|
||||||
defusedxml==0.6.0
|
defusedxml==0.6.0
|
||||||
|
|
||||||
# homeassistant.components.denonavr
|
# homeassistant.components.denonavr
|
||||||
denonavr==0.7.10
|
denonavr==0.7.11
|
||||||
|
|
||||||
# homeassistant.components.directv
|
# homeassistant.components.directv
|
||||||
directpy==0.5
|
directpy==0.5
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue