From 601ca5b72388023ea66917ab85cea7cafe7d600e Mon Sep 17 00:00:00 2001 From: Onkel Andy Date: Fri, 5 Jul 2024 21:12:16 +0200 Subject: [PATCH] stateengine plugin: fix value conversion for strings! --- stateengine/StateEngineCondition.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stateengine/StateEngineCondition.py b/stateengine/StateEngineCondition.py index 7b8545acc..c6d624713 100755 --- a/stateengine/StateEngineCondition.py +++ b/stateengine/StateEngineCondition.py @@ -460,7 +460,7 @@ def __convert(convert_value, convert_current): else: self.__value.set_cast(StateEngineTools.cast_str) convert_value = StateEngineTools.cast_str(convert_value) - convert_current = StateEngineTools.cast_str(convert_value) + convert_current = StateEngineTools.cast_str(convert_current) if not type(_oldvalue) == type(convert_value): self._log_debug("Value {} was type {} and therefore not the same" " type as item value {}. It got converted to {}.",