From 6feacbbfe15d6cd8d2fb3fd6b397bdaa3a141434 Mon Sep 17 00:00:00 2001 From: Dougal Matthews Date: Mon, 15 Oct 2018 18:11:12 +0100 Subject: [PATCH] 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. --- homeassistant/components/media_player/volumio.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/media_player/volumio.py b/homeassistant/components/media_player/volumio.py index de0f726c2ce..686bfe17a4c 100644 --- a/homeassistant/components/media_player/volumio.py +++ b/homeassistant/components/media_player/volumio.py @@ -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: