mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 09:47:13 +00:00
PS4 bump to 0.8.3 (#24527)
* 0.8.3 * 0.8.3 * 0.8.3 * add unsubscribe method
This commit is contained in:
parent
d8f5e9b878
commit
9a8b945118
@ -4,7 +4,7 @@
|
|||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://www.home-assistant.io/components/ps4",
|
"documentation": "https://www.home-assistant.io/components/ps4",
|
||||||
"requirements": [
|
"requirements": [
|
||||||
"pyps4-homeassistant==0.8.2"
|
"pyps4-homeassistant==0.8.3"
|
||||||
],
|
],
|
||||||
"dependencies": [],
|
"dependencies": [],
|
||||||
"codeowners": [
|
"codeowners": [
|
||||||
|
@ -129,6 +129,12 @@ class PS4Device(MediaPlayerDevice):
|
|||||||
self.hass.data[PS4_DATA].protocol.add_callback(
|
self.hass.data[PS4_DATA].protocol.add_callback(
|
||||||
self._ps4, self.status_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):
|
def check_region(self):
|
||||||
"""Display logger msg if region is deprecated."""
|
"""Display logger msg if region is deprecated."""
|
||||||
# Non-Breaking although data returned may be inaccurate.
|
# Non-Breaking although data returned may be inaccurate.
|
||||||
@ -246,7 +252,7 @@ class PS4Device(MediaPlayerDevice):
|
|||||||
if title is not None:
|
if title is not None:
|
||||||
app_name = title.name
|
app_name = title.name
|
||||||
art = title.cover_art
|
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':
|
if title.game_type != 'App':
|
||||||
media_type = MEDIA_TYPE_GAME
|
media_type = MEDIA_TYPE_GAME
|
||||||
else:
|
else:
|
||||||
|
@ -1294,7 +1294,7 @@ pypjlink2==1.2.0
|
|||||||
pypoint==1.1.1
|
pypoint==1.1.1
|
||||||
|
|
||||||
# homeassistant.components.ps4
|
# homeassistant.components.ps4
|
||||||
pyps4-homeassistant==0.8.2
|
pyps4-homeassistant==0.8.3
|
||||||
|
|
||||||
# homeassistant.components.qwikswitch
|
# homeassistant.components.qwikswitch
|
||||||
pyqwikswitch==0.93
|
pyqwikswitch==0.93
|
||||||
|
@ -274,7 +274,7 @@ pyopenuv==1.0.9
|
|||||||
pyotp==2.2.7
|
pyotp==2.2.7
|
||||||
|
|
||||||
# homeassistant.components.ps4
|
# homeassistant.components.ps4
|
||||||
pyps4-homeassistant==0.8.2
|
pyps4-homeassistant==0.8.3
|
||||||
|
|
||||||
# homeassistant.components.qwikswitch
|
# homeassistant.components.qwikswitch
|
||||||
pyqwikswitch==0.93
|
pyqwikswitch==0.93
|
||||||
|
Loading…
x
Reference in New Issue
Block a user