update Setting _cast method

change exclusion from text to enum
text type is available in TYPES dict for casting
This commit is contained in:
blacktwin 2020-03-16 11:13:51 -04:00
parent 1d05304643
commit 46e8b8e155

View file

@ -124,8 +124,8 @@ class Setting(PlexObject):
self.enumValues = self._getEnumValues(data)
def _cast(self, value):
""" Cast the specifief value to the type of this setting. """
if self.type != 'text':
""" Cast the specific value to the type of this setting. """
if self.type != 'enum':
value = utils.cast(self.TYPES.get(self.type)['cast'], value)
return value