hass-core/homeassistant/components/plex/errors.py
jjlawren 312af53935
Handle Plex certificate updates (#33230)
* Handle Plex certificate updates

* Use exception in place

* Add test
2020-03-28 21:02:29 -07:00

18 lines
488 B
Python

"""Errors for the Plex component."""
from homeassistant.exceptions import HomeAssistantError
class PlexException(HomeAssistantError):
"""Base class for Plex exceptions."""
class NoServersFound(PlexException):
"""No servers found on Plex account."""
class ServerNotSpecified(PlexException):
"""Multiple servers linked to account without choice provided."""
class ShouldUpdateConfigEntry(PlexException):
"""Config entry data is out of date and should be updated."""