mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 07:07:28 +00:00
Improve Sonos activity debug logging (#61122)
This commit is contained in:
parent
0adf86d647
commit
da4349d133
@ -40,7 +40,7 @@ def soco_error(
|
|||||||
return None
|
return None
|
||||||
except (OSError, SoCoException, SoCoUPnPException) as err:
|
except (OSError, SoCoException, SoCoUPnPException) as err:
|
||||||
error_code = getattr(err, "error_code", None)
|
error_code = getattr(err, "error_code", None)
|
||||||
function = funct.__name__
|
function = funct.__qualname__
|
||||||
if errorcodes and error_code in errorcodes:
|
if errorcodes and error_code in errorcodes:
|
||||||
_LOGGER.debug(
|
_LOGGER.debug(
|
||||||
"Error code %s ignored in call to %s", error_code, function
|
"Error code %s ignored in call to %s", error_code, function
|
||||||
@ -59,7 +59,9 @@ def soco_error(
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
dispatcher_send(
|
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
|
return result
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user