From 38fbffa561144dfb7dbb6998206f90a699cc3d82 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Sat, 18 Oct 2025 00:52:23 +0200 Subject: [PATCH] Fix typo in use_cache decorator --- music_assistant/controllers/cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/music_assistant/controllers/cache.py b/music_assistant/controllers/cache.py index 9171d80c..f7b4d02d 100644 --- a/music_assistant/controllers/cache.py +++ b/music_assistant/controllers/cache.py @@ -385,7 +385,7 @@ def use_cache( @functools.wraps(func) async def wrapper(self: ProviderT, *args: P.args, **kwargs: P.kwargs) -> R: cache = self.mass.cache - provider_id = getattr(self, "provider_id", self.domain) + provider_id = getattr(self, "instance_id", self.domain) # create a cache key dynamically based on the (remaining) args/kwargs cache_key_parts = [func.__name__, *args] -- 2.34.1