@@ -112,7 +112,7 @@ async def async_resolve_media(self, item: MediaSourceItem) -> PlayMedia:
112112 translation_key = "account_not_configured" ,
113113 ) from e
114114
115- client = entry .runtime_data .client
115+ client = entry .runtime_data .status . client
116116
117117 if identifier .media_type in (ATTR_GAMECLIPS , ATTR_COMMUNITY_GAMECLIPS ):
118118 try :
@@ -302,7 +302,7 @@ async def _build_game_library(self, entry: XboxConfigEntry) -> BrowseMediaSource
302302 async def _build_games (self , entry : XboxConfigEntry ) -> list [BrowseMediaSource ]:
303303 """List Xbox games for the selected account."""
304304
305- client = entry .runtime_data .client
305+ client = entry .runtime_data .status . client
306306 if TYPE_CHECKING :
307307 assert entry .unique_id
308308 fields = [
@@ -346,7 +346,7 @@ async def _build_game_title(
346346 self , entry : XboxConfigEntry , identifier : XboxMediaSourceIdentifier
347347 ) -> BrowseMediaSource :
348348 """Display game title."""
349- client = entry .runtime_data .client
349+ client = entry .runtime_data .status . client
350350 try :
351351 game = (await client .titlehub .get_title_info (identifier .title_id )).titles [0 ]
352352 except TimeoutException as e :
@@ -402,7 +402,7 @@ async def _build_game_media(
402402 self , entry : XboxConfigEntry , identifier : XboxMediaSourceIdentifier
403403 ) -> BrowseMediaSource :
404404 """List game media."""
405- client = entry .runtime_data .client
405+ client = entry .runtime_data .status . client
406406 try :
407407 game = (await client .titlehub .get_title_info (identifier .title_id )).titles [0 ]
408408 except TimeoutException as e :
@@ -439,7 +439,7 @@ async def _build_media_items_gameclips(
439439 self , entry : XboxConfigEntry , identifier : XboxMediaSourceIdentifier
440440 ) -> list [BrowseMediaSource ]:
441441 """List media items."""
442- client = entry .runtime_data .client
442+ client = entry .runtime_data .status . client
443443
444444 if identifier .media_type != ATTR_GAMECLIPS :
445445 return []
@@ -483,7 +483,7 @@ async def _build_media_items_community_gameclips(
483483 self , entry : XboxConfigEntry , identifier : XboxMediaSourceIdentifier
484484 ) -> list [BrowseMediaSource ]:
485485 """List media items."""
486- client = entry .runtime_data .client
486+ client = entry .runtime_data .status . client
487487
488488 if identifier .media_type != ATTR_COMMUNITY_GAMECLIPS :
489489 return []
@@ -527,7 +527,7 @@ async def _build_media_items_screenshots(
527527 self , entry : XboxConfigEntry , identifier : XboxMediaSourceIdentifier
528528 ) -> list [BrowseMediaSource ]:
529529 """List media items."""
530- client = entry .runtime_data .client
530+ client = entry .runtime_data .status . client
531531
532532 if identifier .media_type != ATTR_SCREENSHOTS :
533533 return []
@@ -571,7 +571,7 @@ async def _build_media_items_community_screenshots(
571571 self , entry : XboxConfigEntry , identifier : XboxMediaSourceIdentifier
572572 ) -> list [BrowseMediaSource ]:
573573 """List media items."""
574- client = entry .runtime_data .client
574+ client = entry .runtime_data .status . client
575575
576576 if identifier .media_type != ATTR_COMMUNITY_SCREENSHOTS :
577577 return []
@@ -640,7 +640,7 @@ def _build_media_items_promotional(
640640
641641def gamerpic (config_entry : XboxConfigEntry ) -> str | None :
642642 """Return gamerpic."""
643- coordinator = config_entry .runtime_data
643+ coordinator = config_entry .runtime_data . status
644644 if TYPE_CHECKING :
645645 assert config_entry .unique_id
646646 person = coordinator .data .presence [coordinator .client .xuid ]
0 commit comments