2020-12-28 15:46:15 -07:00
|
|
|
""" Home Assistant derived exceptions"""
|
2020-08-25 11:09:28 -06:00
|
|
|
|
|
|
|
from homeassistant import exceptions as ha_exc
|
|
|
|
|
2020-12-28 15:46:15 -07:00
|
|
|
class HaCannotConnect(ha_exc.HomeAssistantError):
|
2020-08-25 11:09:28 -06:00
|
|
|
"""Error to indicate we cannot connect."""
|
2020-12-28 15:46:15 -07:00
|
|
|
class HaAuthError(ha_exc.HomeAssistantError):
|
2020-08-25 11:09:28 -06:00
|
|
|
"""Error to indicate authentication failure."""
|
2021-08-21 12:02:13 -06:00
|
|
|
class HaAlreadyConfigured(ha_exc.HomeAssistantError):
|
|
|
|
"""Error to indicate that the account is already configured"""
|