mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +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."""
|
||||
return f"{self.source_id}/{action}{object_id}"
|
||||
|
||||
@property # type: ignore
|
||||
@functools.cache
|
||||
@functools.cached_property
|
||||
def _sort_criteria(self) -> list[str]:
|
||||
"""Return criteria to be used for sorting results.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user