Files
mega_hacs/custom_components/mega/exceptions.py
2020-12-28 22:23:56 +03:00

18 lines
443 B
Python

from homeassistant import exceptions
class CannotConnect(exceptions.HomeAssistantError):
"""Error to indicate we cannot connect."""
class MqttNotConfigured(exceptions.HomeAssistantError):
"""Error to indicate mqtt is not configured"""
class DuplicateId(exceptions.HomeAssistantError):
"""Error to indicate duplicate id"""
class InvalidAuth(exceptions.HomeAssistantError):
"""Error to indicate there is invalid auth."""