mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 21:25:13 +02:00
Raise HomeAssistant error on failed Spotify service calls (#91299)
This commit is contained in:
@@ -95,6 +95,7 @@ def spotify_exception_handler(func):
|
|||||||
self._attr_available = False
|
self._attr_available = False
|
||||||
if exc.reason == "NO_ACTIVE_DEVICE":
|
if exc.reason == "NO_ACTIVE_DEVICE":
|
||||||
raise HomeAssistantError("No active playback device found") from None
|
raise HomeAssistantError("No active playback device found") from None
|
||||||
|
raise HomeAssistantError(f"Spotify error: {exc.reason}") from exc
|
||||||
|
|
||||||
return wrapper
|
return wrapper
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user