Don't cache device label

Generating the device label doesn't require much computing power. Thus,
caching does more harm than good, as it may return stale labels after
name changes. Now a fresh label is always generated.
This commit is contained in:
Alexander Haase 2025-02-25 08:23:35 +01:00
parent 4692b9f955
commit 650ed0e643

View File

@ -1069,7 +1069,7 @@ class Device(
device.location = self.location
device.save()
@cached_property
@property
def label(self):
"""
Return the device name if set; otherwise return a generated name if available.