Include the name of the Volumio media player in errors (#17481)
When you have multiple Volumio media players it can be hard to determine which one has a problem without this information.
This commit is contained in:
parent
2ceb4d2d1e
commit
6feacbbfe1
1 changed files with 3 additions and 1 deletions
|
@ -113,7 +113,9 @@ class Volumio(MediaPlayerDevice):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
except (asyncio.TimeoutError, aiohttp.ClientError) as error:
|
except (asyncio.TimeoutError, aiohttp.ClientError) as error:
|
||||||
_LOGGER.error("Failed communicating with Volumio: %s", type(error))
|
_LOGGER.error(
|
||||||
|
"Failed communicating with Volumio '%s': %s",
|
||||||
|
self._name, type(error))
|
||||||
return False
|
return False
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Reference in a new issue