From a1037e5d2c6016d3c7d785552c8e284b12c5dc0b Mon Sep 17 00:00:00 2001 From: Christopher Banck Date: Thu, 21 Mar 2024 10:03:17 +0100 Subject: [PATCH] fix set_switch_onoff --- e3dc/_e3dc.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/e3dc/_e3dc.py b/e3dc/_e3dc.py index 8831470..5942a91 100644 --- a/e3dc/_e3dc.py +++ b/e3dc/_e3dc.py @@ -391,15 +391,13 @@ def set_switch_onoff( True/False """ - cmd = "on" if value else "off" - result = self.sendRequest( ( RscpTag.HA_REQ_COMMAND_ACTUATOR, RscpType.Container, [ (RscpTag.HA_DATAPOINT_INDEX, RscpType.Uint16, switchID), - (RscpTag.HA_REQ_COMMAND, RscpType.CString, cmd), + (RscpTag.HA_REQ_COMMAND, RscpType.CString, value), ], ), keepAlive=keepAlive,