mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Raise HomeAssistant error on failed Spotify service calls (#91299)
This commit is contained in:
parent
99afab723b
commit
355404a959
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user