From 8c33eabe10d88f5912f2a1ed1ac2b5af9c49a959 Mon Sep 17 00:00:00 2001 From: Littlesat Date: Tue, 24 Dec 2024 15:39:03 +0100 Subject: [PATCH] Revert "config: save booleans in lower case so stay compatible with older images" This reverts commit c49911098971c8fed832cdda10688ba2c5d1b83c. --- lib/python/Components/config.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py index 94d7e91d865..294e724088b 100644 --- a/lib/python/Components/config.py +++ b/lib/python/Components/config.py @@ -556,19 +556,6 @@ def trueValues(self): # This should be set in the __init__() but has been done this way as a workaround for a stupid broken plugin that fails to call ConfigBoolean.__init__(). return ("1", "enable", "on", "true", "yes") - # you need to override this if str(self.value) doesn't work - def save(self): - print(self.saved_value, self.value, self.default, self.last_value) - if self.save_disabled or (self.value == self.default and not self.save_forced): - self.saved_value = None - else: - #ensure saved value is in lower case to keep backwards compatible with previous OpenPLi images - self.saved_value = self.tostring(self.value).lower() - - if self.last_value != self.tostring(self.value): - self.last_value = self.tostring(self.value) - self.changedFinal() - def isChanged(self): #Make booleans checks with saved value non case sensitive sv = self.saved_value or self.tostring(self.default)