Skip to content

Commit

Permalink
Modules/input.py: Decode8095: Fix fallback MsgCmd
Browse files Browse the repository at this point in the history
Dont use str(int(MsgCmd, 16)) as MsgCmd will be converted from
"01" to "1" for instance.

Signed-off-by: Arnaud Patard <[email protected]>
  • Loading branch information
thertp committed Nov 20, 2023
1 parent dd3e7cf commit 9577403
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -4140,7 +4140,7 @@ def Decode8095(self, Devices, MsgData, MsgLQI):
MajDomoDevice(self, Devices, MsgSrcAddr, "02", "0006", "01")

else:
MajDomoDevice(self, Devices, MsgSrcAddr, MsgEP, "0006", str(int(MsgCmd, 16)))
MajDomoDevice(self, Devices, MsgSrcAddr, MsgEP, "0006", MsgCmd)
self.ListOfDevices[MsgSrcAddr]["Ep"][MsgEP][MsgClusterId]["0000"] = "Cmd: %s, %s" % (MsgCmd, unknown_)
self.log.logging( "Input", "Log", "Decode8095 - Model: %s SQN: %s, Addr: %s, Ep: %s, Cluster: %s, Cmd: %s, Unknown: %s " % (
_ModelName, MsgSQN, MsgSrcAddr, MsgEP, MsgClusterId, MsgCmd, unknown_), MsgSrcAddr, )
Expand Down

0 comments on commit 9577403

Please sign in to comment.