From 355404a959018203e67e2e2aa16b62068651c1a3 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Thu, 13 Apr 2023 02:42:33 +0200 Subject: [PATCH] Raise HomeAssistant error on failed Spotify service calls (#91299) --- homeassistant/components/spotify/media_player.py | 1 + 1 file changed, 1 insertion(+) diff --git a/homeassistant/components/spotify/media_player.py b/homeassistant/components/spotify/media_player.py index b63a9513818..a738952d2ca 100644 --- a/homeassistant/components/spotify/media_player.py +++ b/homeassistant/components/spotify/media_player.py @@ -95,6 +95,7 @@ def spotify_exception_handler(func): self._attr_available = False if exc.reason == "NO_ACTIVE_DEVICE": raise HomeAssistantError("No active playback device found") from None + raise HomeAssistantError(f"Spotify error: {exc.reason}") from exc return wrapper