mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 23:27:37 +00:00
Add ConfigEntryNotReady exception to Plex (#32071)
This commit is contained in:
parent
2fb66fd866
commit
9cc47ca737
@ -19,6 +19,7 @@ from homeassistant.const import (
|
|||||||
CONF_VERIFY_SSL,
|
CONF_VERIFY_SSL,
|
||||||
EVENT_HOMEASSISTANT_STOP,
|
EVENT_HOMEASSISTANT_STOP,
|
||||||
)
|
)
|
||||||
|
from homeassistant.exceptions import ConfigEntryNotReady
|
||||||
from homeassistant.helpers import config_validation as cv
|
from homeassistant.helpers import config_validation as cv
|
||||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||||
from homeassistant.helpers.dispatcher import (
|
from homeassistant.helpers.dispatcher import (
|
||||||
@ -129,7 +130,7 @@ async def async_setup_entry(hass, entry):
|
|||||||
server_config[CONF_URL],
|
server_config[CONF_URL],
|
||||||
error,
|
error,
|
||||||
)
|
)
|
||||||
return False
|
raise ConfigEntryNotReady
|
||||||
except (
|
except (
|
||||||
plexapi.exceptions.BadRequest,
|
plexapi.exceptions.BadRequest,
|
||||||
plexapi.exceptions.Unauthorized,
|
plexapi.exceptions.Unauthorized,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user