From a55d20f164f4495cee033f958ef731020893ca4b Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Thu, 3 Mar 2022 23:59:48 +0100 Subject: [PATCH] Use cached_property instead of stacked property + cache (#67515) --- homeassistant/components/dlna_dms/dms.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/homeassistant/components/dlna_dms/dms.py b/homeassistant/components/dlna_dms/dms.py index 0fa4d77d005..4cb1477778a 100644 --- a/homeassistant/components/dlna_dms/dms.py +++ b/homeassistant/components/dlna_dms/dms.py @@ -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.