From da4349d13357393951fa20813fb6cf649e374536 Mon Sep 17 00:00:00 2001 From: jjlawren Date: Mon, 6 Dec 2021 17:21:28 -0600 Subject: [PATCH] Improve Sonos activity debug logging (#61122) --- homeassistant/components/sonos/helpers.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/sonos/helpers.py b/homeassistant/components/sonos/helpers.py index e80d16a491b..74897a618ea 100644 --- a/homeassistant/components/sonos/helpers.py +++ b/homeassistant/components/sonos/helpers.py @@ -40,7 +40,7 @@ def soco_error( return None except (OSError, SoCoException, SoCoUPnPException) as err: error_code = getattr(err, "error_code", None) - function = funct.__name__ + function = funct.__qualname__ if errorcodes and error_code in errorcodes: _LOGGER.debug( "Error code %s ignored in call to %s", error_code, function @@ -59,7 +59,9 @@ def soco_error( return None dispatcher_send( - self.hass, f"{SONOS_SPEAKER_ACTIVITY}-{self.soco.uid}", funct.__name__ + self.hass, + f"{SONOS_SPEAKER_ACTIVITY}-{self.soco.uid}", + funct.__qualname__, ) return result