Skip to content

Commit

Permalink
fix set_switch_onoff
Browse files Browse the repository at this point in the history
  • Loading branch information
vchrisb committed Mar 21, 2024
1 parent ebc3815 commit a1037e5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions e3dc/_e3dc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a1037e5

Please sign in to comment.