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:
Dougal Matthews 2018-10-15 18:11:12 +01:00 committed by Fabian Affolter
parent 2ceb4d2d1e
commit 6feacbbfe1

View file

@ -113,7 +113,9 @@ class Volumio(MediaPlayerDevice):
return False
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
try: