mirror of https://github.com/home-assistant/core
21 lines
478 B
Python
21 lines
478 B
Python
"""Sonos specific exceptions."""
|
|
|
|
from homeassistant.components.media_player import BrowseError
|
|
from homeassistant.exceptions import HomeAssistantError
|
|
|
|
|
|
class UnknownMediaType(BrowseError):
|
|
"""Unknown media type."""
|
|
|
|
|
|
class SonosSubscriptionsFailed(HomeAssistantError):
|
|
"""Subscription creation failed."""
|
|
|
|
|
|
class SonosUpdateError(HomeAssistantError):
|
|
"""Update failed."""
|
|
|
|
|
|
class S1BatteryMissing(SonosUpdateError):
|
|
"""Battery update failed on S1 firmware."""
|