parent
d8f5e9b878
commit
9a8b945118
|
@ -4,7 +4,7 @@
|
|||
"config_flow": true,
|
||||
"documentation": "https://www.home-assistant.io/components/ps4",
|
||||
"requirements": [
|
||||
"pyps4-homeassistant==0.8.2"
|
||||
"pyps4-homeassistant==0.8.3"
|
||||
],
|
||||
"dependencies": [],
|
||||
"codeowners": [
|
||||
|
|
|
@ -129,6 +129,12 @@ class PS4Device(MediaPlayerDevice):
|
|||
self.hass.data[PS4_DATA].protocol.add_callback(
|
||||
self._ps4, self.status_callback)
|
||||
|
||||
@callback
|
||||
def unsubscribe_to_protocol(self):
|
||||
"""Notify protocol to remove callback."""
|
||||
self.hass.data[PS4_DATA].protocol.remove_callback(
|
||||
self._ps4, self.status_callback)
|
||||
|
||||
def check_region(self):
|
||||
"""Display logger msg if region is deprecated."""
|
||||
# Non-Breaking although data returned may be inaccurate.
|
||||
|
@ -246,7 +252,7 @@ class PS4Device(MediaPlayerDevice):
|
|||
if title is not None:
|
||||
app_name = title.name
|
||||
art = title.cover_art
|
||||
# Also assume media type is game if search fails.
|
||||
# Assume media type is game if not app.
|
||||
if title.game_type != 'App':
|
||||
media_type = MEDIA_TYPE_GAME
|
||||
else:
|
||||
|
|
|
@ -1294,7 +1294,7 @@ pypjlink2==1.2.0
|
|||
pypoint==1.1.1
|
||||
|
||||
# homeassistant.components.ps4
|
||||
pyps4-homeassistant==0.8.2
|
||||
pyps4-homeassistant==0.8.3
|
||||
|
||||
# homeassistant.components.qwikswitch
|
||||
pyqwikswitch==0.93
|
||||
|
|
|
@ -274,7 +274,7 @@ pyopenuv==1.0.9
|
|||
pyotp==2.2.7
|
||||
|
||||
# homeassistant.components.ps4
|
||||
pyps4-homeassistant==0.8.2
|
||||
pyps4-homeassistant==0.8.3
|
||||
|
||||
# homeassistant.components.qwikswitch
|
||||
pyqwikswitch==0.93
|
||||
|
|
Loading…
Reference in New Issue