ha_gehome/custom_components/ge_home/exceptions.py

10 lines
405 B
Python
Raw Normal View History

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