From 8b847c3803e4121a7b44efe14867263a01e59773 Mon Sep 17 00:00:00 2001 From: Onkel Andy Date: Sun, 7 Jul 2024 12:33:06 +0200 Subject: [PATCH] denon plugin: code fix --- denon/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/denon/__init__.py b/denon/__init__.py index 6ace0cb1c..633c4c258 100755 --- a/denon/__init__.py +++ b/denon/__init__.py @@ -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)