mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Use cached_property instead of stacked property + cache (#67515)
This commit is contained in:
parent
9356bf1a8e
commit
a55d20f164
@ -680,8 +680,7 @@ class DmsDeviceSource:
|
|||||||
"""Make an identifier for BrowseMediaSource."""
|
"""Make an identifier for BrowseMediaSource."""
|
||||||
return f"{self.source_id}/{action}{object_id}"
|
return f"{self.source_id}/{action}{object_id}"
|
||||||
|
|
||||||
@property # type: ignore
|
@functools.cached_property
|
||||||
@functools.cache
|
|
||||||
def _sort_criteria(self) -> list[str]:
|
def _sort_criteria(self) -> list[str]:
|
||||||
"""Return criteria to be used for sorting results.
|
"""Return criteria to be used for sorting results.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user