mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 15:47:12 +00:00
Increase trophy titles retrieval page size to 500 for PlayStation Network (#149528)
This commit is contained in:
parent
431b2aa1d5
commit
dbb5730389
@ -116,7 +116,7 @@ class PlaystationNetworkTrophyTitlesCoordinator(
|
|||||||
async def update_data(self) -> list[TrophyTitle]:
|
async def update_data(self) -> list[TrophyTitle]:
|
||||||
"""Update trophy titles data."""
|
"""Update trophy titles data."""
|
||||||
self.psn.trophy_titles = await self.hass.async_add_executor_job(
|
self.psn.trophy_titles = await self.hass.async_add_executor_job(
|
||||||
lambda: list(self.psn.user.trophy_titles())
|
lambda: list(self.psn.user.trophy_titles(page_size=500))
|
||||||
)
|
)
|
||||||
await self.config_entry.runtime_data.user_data.async_request_refresh()
|
await self.config_entry.runtime_data.user_data.async_request_refresh()
|
||||||
return self.psn.trophy_titles
|
return self.psn.trophy_titles
|
||||||
|
@ -67,7 +67,7 @@ class PlaystationNetwork:
|
|||||||
self.user = self.psn.user(online_id="me")
|
self.user = self.psn.user(online_id="me")
|
||||||
self.client = self.psn.me()
|
self.client = self.psn.me()
|
||||||
self.shareable_profile_link = self.client.get_shareable_profile_link()
|
self.shareable_profile_link = self.client.get_shareable_profile_link()
|
||||||
self.trophy_titles = list(self.user.trophy_titles())
|
self.trophy_titles = list(self.user.trophy_titles(page_size=500))
|
||||||
|
|
||||||
async def async_setup(self) -> None:
|
async def async_setup(self) -> None:
|
||||||
"""Setup PSN."""
|
"""Setup PSN."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user