mirror of
https://github.com/sascha-hemi/hacs_waste_collection_schedule.git
synced 2026-03-21 03:04:09 +01:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user