File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
homeassistant/components/cloudflare Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1313from homeassistant .config_entries import ConfigEntry
1414from homeassistant .const import CONF_API_TOKEN , CONF_ZONE
1515from homeassistant .core import HomeAssistant , callback
16- from homeassistant .exceptions import ConfigEntryAuthFailed , ConfigEntryError
16+ from homeassistant .exceptions import ConfigEntryAuthFailed
1717from homeassistant .helpers .aiohttp_client import async_get_clientsession
1818from homeassistant .helpers .update_coordinator import DataUpdateCoordinator , UpdateFailed
1919from 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."""
You can’t perform that action at this time.
0 commit comments