hass-core/homeassistant/components/co2signal/exceptions.py
Jan-Philipp Benecke c504ca906d
Move co2signal exceptions to their own file (#100473)
* Move co2signal exceptions to their own file

* Add myself as codeowner
2023-09-16 11:18:19 +02:00

18 lines
438 B
Python

"""Exceptions to the co2signal integration."""
from homeassistant.exceptions import HomeAssistantError
class CO2Error(HomeAssistantError):
"""Base error."""
class InvalidAuth(CO2Error):
"""Raised when invalid authentication credentials are provided."""
class APIRatelimitExceeded(CO2Error):
"""Raised when the API rate limit is exceeded."""
class UnknownError(CO2Error):
"""Raised when an unknown error occurs."""