mirror of
https://github.com/andvikt/mega_hacs.git
synced 2025-12-12 01:24:29 +05:00
initial
This commit is contained in:
17
custom_components/mega/exceptions.py
Normal file
17
custom_components/mega/exceptions.py
Normal file
@@ -0,0 +1,17 @@
|
||||
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."""
|
||||
Reference in New Issue
Block a user