Options: fix corner case where Toggle.value and Toggle.__int__ would be bool

Which lead to a connect failure in Raft
This commit is contained in:
Fabian Dill
2022-08-27 09:21:47 +02:00
committed by Fabian Dill
parent 4c94bb0ad5
commit cc8ce32c61

View File

@@ -298,7 +298,7 @@ class Toggle(NumericOption):
if type(data) == str:
return cls.from_text(data)
else:
return cls(data)
return cls(int(data))
@classmethod
def get_option_name(cls, value):