Skip to content

Commit

Permalink
Update smartdeviceplugin.py
Browse files Browse the repository at this point in the history
and not self._parameters.get[PLUGIN_ATTR_PROTOCOL]:
  • Loading branch information
onkelandy authored Aug 2, 2024
1 parent c6e26a0 commit d0a947c
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 @@ -190,7 +190,7 @@ def __init__(self, sh, logger=None, **kwargs):
self._parameters[PLUGIN_ATTR_SEND_RETRIES] = self.get_parameter_value(PLUGIN_ATTR_SEND_RETRIES)
self._parameters[PLUGIN_ATTR_SEND_RETRIES_CYCLE] = self.get_parameter_value(PLUGIN_ATTR_SEND_RETRIES_CYCLE)
# Set protocol to resend if send_retries is > 0
if self._parameters.get(PLUGIN_ATTR_SEND_RETRIES, 0) > 0:
if self._parameters.get(PLUGIN_ATTR_SEND_RETRIES, 0) > 0 and not self._parameters.get[PLUGIN_ATTR_PROTOCOL]:
self._parameters[PLUGIN_ATTR_PROTOCOL] = 'resend'
# init parameters in standalone mode
if SDP_standalone:
Expand Down

0 comments on commit d0a947c

Please sign in to comment.