Skip to content

Commit

Permalink
SDP: only add returnvalue/type to data_dict if command has "reading" …
Browse files Browse the repository at this point in the history
…active
  • Loading branch information
onkelandy committed May 29, 2024
1 parent 6729903 commit 45c13e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/model/smartdeviceplugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ def send_command(self, command, value=None, return_result=False, **kwargs):
try:
data_dict = self._commands.get_send_data(command, value, **kwargs)
data_dict['command'] = command
if value is not None:
if value is not None and self._commands_read.get(command, None) is not None:
data_dict['returntype'] = type(value)
data_dict['returnvalue'] = value
data_dict['retry'] = kwargs.get('retry') or 0
Expand Down

0 comments on commit 45c13e7

Please sign in to comment.