Remove unneccesary fetch test

coordinator.async_config_entry_first_refresh() does excactly the same:
test if fetch is successfull and if not raise ConfigEntryNotReady
This commit is contained in:
5ila5
2024-07-13 12:15:55 +02:00
committed by 5ila5
parent 9e45a2e214
commit a2a5f2201e

View File

@@ -8,7 +8,6 @@ from typing import Any
import homeassistant.helpers.config_validation as cv
import homeassistant.util.dt as dt_util
from homeassistant.core import HomeAssistant, callback
from homeassistant.exceptions import ConfigEntryNotReady
from homeassistant.helpers.device_registry import DeviceEntryType, DeviceInfo
from homeassistant.helpers.dispatcher import dispatcher_send
from homeassistant.helpers.event import (
@@ -60,13 +59,6 @@ async def async_setup_entry(hass: HomeAssistant, entry) -> bool:
options.get(const.CONF_SOURCE_CALENDAR_TITLE),
)
try:
await hass.async_add_executor_job(shell.fetch)
except Exception as err: # pylint: disable=broad-except
ex = ConfigEntryNotReady()
ex.__cause__ = err
raise ex
coordinator = WCSCoordinator(
hass,
source_shell=shell,