Skip to content

Commit a9cc935

Browse files
committed
Remove cached data properties
1 parent 077a5cf commit a9cc935

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

plexapi/myplex.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2085,18 +2085,18 @@ def generateKeypair(self, keyfiles=(None, None), overwrite=False):
20852085
privateFile.write(self._privateKey)
20862086
publicFile.write(self._publicKey)
20872087

2088-
@cached_data_property
2088+
@property
20892089
def _clientIdentifier(self):
20902090
""" Returns the client identifier from the headers. """
20912091
headers = self._headers()
20922092
return headers['X-Plex-Client-Identifier']
20932093

2094-
@cached_data_property
2094+
@property
20952095
def _keyID(self):
20962096
""" Returns the key ID (thumbprint) for the ED25519 keypair. """
20972097
return hashlib.sha256(self._privateKey + self._publicKey).hexdigest()
20982098

2099-
@cached_data_property
2099+
@property
21002100
def _privateJWK(self):
21012101
""" Returns the private JWK (JSON Web Key) for the ED25519 keypair."""
21022102
return jwt.PyJWK.from_dict({
@@ -2109,7 +2109,7 @@ def _privateJWK(self):
21092109
'kid': self._keyID,
21102110
})
21112111

2112-
@cached_data_property
2112+
@property
21132113
def _publicJWK(self):
21142114
""" Returns the public JWK (JSON Web Key) for the ED25519 keypair."""
21152115
return jwt.PyJWK.from_dict({

0 commit comments

Comments
 (0)