Change deprecated media_player state standby to off in PlayStation Network (#148885)

This commit is contained in:
Manu 2025-07-16 15:48:39 +02:00 committed by GitHub
parent 840e0d1388
commit b68de0af88
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 5 deletions

View File

@ -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

View File

@ -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]