mirror of
https://github.com/home-assistant/core.git
synced 2026-02-22 10:55:50 +00:00
* Add config flow * Make sure the device is polled - refactor * Fix * Add tests config flow * Update test requirements * Ensure dispatcher has a unique signal per heater * Followup on review * Follow up comments * One more docstr * Make specific try blocks and refactoring * Handle import exceptions * Restore removed lines * Move initial heater update in try block * Raise issue failed import * Update test codeowners * Remove entity device info * Remove entity device info * Appy suggestions from code review * Remove broad exception handling from entry setup * Test coverage
33 lines
834 B
Python
33 lines
834 B
Python
"""Exceptions raised by Intergas InComfort integration."""
|
|
|
|
from homeassistant.core import DOMAIN
|
|
from homeassistant.exceptions import ConfigEntryNotReady, HomeAssistantError
|
|
|
|
|
|
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 InConfortTimeout(ConfigEntryNotReady):
|
|
"""Raise exception if no heaters are found."""
|
|
|
|
translation_domain = DOMAIN
|
|
translation_key = "timeout_error"
|
|
|
|
|
|
class InConfortUnknownError(ConfigEntryNotReady):
|
|
"""Raise exception if no heaters are found."""
|
|
|
|
translation_domain = DOMAIN
|
|
translation_key = "unknown"
|