mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Change deprecated media_player state standby to off in PlayStation Network (#148885)
This commit is contained in:
parent
840e0d1388
commit
b68de0af88
@ -125,8 +125,6 @@ class PsnMediaPlayerEntity(
|
||||
if session.title_id is not None
|
||||
else MediaPlayerState.ON
|
||||
)
|
||||
if session.status == "standby":
|
||||
return MediaPlayerState.STANDBY
|
||||
return MediaPlayerState.OFF
|
||||
|
||||
@property
|
||||
|
@ -39,9 +39,7 @@
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'device_class': 'receiver',
|
||||
'entity_picture_local': None,
|
||||
'friendly_name': 'PlayStation Vita',
|
||||
'media_content_type': <MediaType.GAME: 'game'>,
|
||||
'supported_features': <MediaPlayerEntityFeature: 0>,
|
||||
}),
|
||||
'context': <ANY>,
|
||||
@ -49,7 +47,7 @@
|
||||
'last_changed': <ANY>,
|
||||
'last_reported': <ANY>,
|
||||
'last_updated': <ANY>,
|
||||
'state': 'standby',
|
||||
'state': 'off',
|
||||
})
|
||||
# ---
|
||||
# name: test_media_player_psvita[presence_payload1][media_player.playstation_vita-entry]
|
||||
|
Loading…
x
Reference in New Issue
Block a user