1
0
mirror of https://github.com/home-assistant/core.git synced 2025-05-01 20:57:51 +00:00
Allen Porter c7d533d427
Update fitbit error handling ()
* Update fitbit error handling

* Update exceptions to inherit HomeAssistantError and add reason code

* Revert config flow exception mapping hack
2023-10-05 22:38:15 -07:00

15 lines
397 B
Python

"""Exceptions for fitbit API calls.
These exceptions exist to provide common exceptions for the async and sync client libraries.
"""
from homeassistant.exceptions import HomeAssistantError
class FitbitApiException(HomeAssistantError):
"""Error talking to the fitbit API."""
class FitbitAuthException(FitbitApiException):
"""Authentication related error talking to the fitbit API."""