34 lines
823 B
Python
34 lines
823 B
Python
"""Exceptions raised by Intergas InComfort integration."""
|
|
|
|
from homeassistant.exceptions import ConfigEntryNotReady, HomeAssistantError
|
|
|
|
from .const import DOMAIN
|
|
|
|
|
|
class NotFound(HomeAssistantError):
|
|
"""Raise exception if no Lan2RF Gateway was found."""
|
|
|
|
translation_domain = DOMAIN
|
|
translation_key = "not_found"
|
|
|
|
|
|
class NoHeaters(ConfigEntryNotReady):
|
|
"""Raise exception if no heaters are found."""
|
|
|
|
translation_domain = DOMAIN
|
|
translation_key = "no_heaters"
|
|
|
|
|
|
class InComfortTimeout(ConfigEntryNotReady):
|
|
"""Raise exception if no heaters are found."""
|
|
|
|
translation_domain = DOMAIN
|
|
translation_key = "timeout_error"
|
|
|
|
|
|
class InComfortUnknownError(ConfigEntryNotReady):
|
|
"""Raise exception if no heaters are found."""
|
|
|
|
translation_domain = DOMAIN
|
|
translation_key = "unknown"
|