Skip to content

Commit 0cf6424

Browse files
committed
Align to UpdateFailed error
Signed-off-by: David Rapan <[email protected]>
1 parent 25e240c commit 0cf6424

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

homeassistant/components/cloudflare/coordinator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from homeassistant.config_entries import ConfigEntry
1414
from homeassistant.const import CONF_API_TOKEN, CONF_ZONE
1515
from homeassistant.core import HomeAssistant, callback
16-
from homeassistant.exceptions import ConfigEntryAuthFailed, ConfigEntryError
16+
from homeassistant.exceptions import ConfigEntryAuthFailed
1717
from homeassistant.helpers.aiohttp_client import async_get_clientsession
1818
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator, UpdateFailed
1919
from homeassistant.util.location import async_detect_location_info
@@ -61,7 +61,7 @@ async def _async_setup(self) -> None:
6161
except pycfdns.AuthenticationException as e:
6262
raise ConfigEntryAuthFailed from e
6363
except pycfdns.ComunicationException as e:
64-
raise ConfigEntryError from e
64+
raise UpdateFailed(f"Error communicating with API") from e
6565

6666
async def _async_update_data(self) -> None:
6767
"""Update records."""

0 commit comments

Comments
 (0)