Skip to content

Commit 46e8b8e

Browse files
committed
update Setting _cast method
change exclusion from text to enum text type is available in TYPES dict for casting
1 parent 1d05304 commit 46e8b8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plexapi/settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ def _loadData(self, data):
124124
self.enumValues = self._getEnumValues(data)
125125

126126
def _cast(self, value):
127-
""" Cast the specifief value to the type of this setting. """
128-
if self.type != 'text':
127+
""" Cast the specific value to the type of this setting. """
128+
if self.type != 'enum':
129129
value = utils.cast(self.TYPES.get(self.type)['cast'], value)
130130
return value
131131

0 commit comments

Comments
 (0)