Fix undesired power toggling (#37427)
This commit is contained in:
1 parent
78e53e35c2
commit
a445ebdf3c
5 files changed
+23
-3
No files matched your search
@@ -3,6 +3,6 @@
|
||||
"name": "Sony PlayStation 4",
|
||||
"config_flow": true,
|
||||
"documentation": "https://www.home-assistant.io/integrations/ps4",
|
||||
"requirements": ["pyps4-2ndscreen==1.1.0"],
|
||||
"requirements": ["pyps4-2ndscreen==1.1.1"],
|
||||
"codeowners": ["@ktnrg45"]
|
||||
}
|
||||
@@ -453,6 +453,10 @@ class PS4Device(MediaPlayerEntity):
|
||||
"""Turn on the media player."""
|
||||
self._ps4.wakeup()
|
||||
|
||||
async def async_toggle(self):
|
||||
"""Toggle media player."""
|
||||
await self._ps4.toggle()
|
||||
|
||||
async def async_media_pause(self):
|
||||
"""Send keypress ps to return to menu."""
|
||||
await self.async_send_remote_control("ps")
|
||||
|
||||
Reference in new issue
Block a user