We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ebc3815 commit 4347f21Copy full SHA for 4347f21
1 file changed
e3dc/_e3dc.py
@@ -391,15 +391,13 @@ def set_switch_onoff(
391
True/False
392
393
"""
394
- cmd = "on" if value else "off"
395
-
396
result = self.sendRequest(
397
(
398
RscpTag.HA_REQ_COMMAND_ACTUATOR,
399
RscpType.Container,
400
[
401
(RscpTag.HA_DATAPOINT_INDEX, RscpType.Uint16, switchID),
402
- (RscpTag.HA_REQ_COMMAND, RscpType.CString, cmd),
+ (RscpTag.HA_REQ_COMMAND, RscpType.CString, value),
403
],
404
),
405
keepAlive=keepAlive,
0 commit comments