2021-02-24 19:51:12 +00:00
|
|
|
"""Sonos specific exceptions."""
|
|
|
|
from homeassistant.components.media_player.errors import BrowseError
|
2021-11-22 00:48:57 +00:00
|
|
|
from homeassistant.exceptions import HomeAssistantError
|
2021-02-24 19:51:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
class UnknownMediaType(BrowseError):
|
|
|
|
"""Unknown media type."""
|
2021-11-22 00:48:57 +00:00
|
|
|
|
|
|
|
|
2022-02-08 18:17:05 +00:00
|
|
|
class SonosUpdateError(HomeAssistantError):
|
|
|
|
"""Update failed."""
|
2022-05-14 18:40:26 +00:00
|
|
|
|
|
|
|
|
|
|
|
class S1BatteryMissing(SonosUpdateError):
|
|
|
|
"""Battery update failed on S1 firmware."""
|