Skip to content

Commit

Permalink
denon plugin: code fix
Browse files Browse the repository at this point in the history
  • Loading branch information
onkelandy committed Jul 7, 2024
1 parent fabe5fd commit 8b847c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion denon/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ def _set_device_defaults(self):
# the sent command. Getting it as return value would assign it to the wrong
# command and discard it... so break the "return result"-chain and don't
# return anything
def _send(self, data_dict, resend_info={}):
def _send(self, data_dict, resend_info=None):
if resend_info is None:
resend_info = {}
if resend_info.get('returnvalue') is not None:
self._sending.update({resend_info.get('command'): resend_info})
return self._connection.send(data_dict)
Expand Down

0 comments on commit 8b847c3

Please sign in to comment.