From 9cc47ca7372879aef987e0e2c48b052b6366ac03 Mon Sep 17 00:00:00 2001 From: jjlawren Date: Fri, 21 Feb 2020 15:07:26 -0600 Subject: [PATCH] Add ConfigEntryNotReady exception to Plex (#32071) --- homeassistant/components/plex/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/plex/__init__.py b/homeassistant/components/plex/__init__.py index 0f1873fc86f..c9b120f75f6 100644 --- a/homeassistant/components/plex/__init__.py +++ b/homeassistant/components/plex/__init__.py @@ -19,6 +19,7 @@ from homeassistant.const import ( CONF_VERIFY_SSL, EVENT_HOMEASSISTANT_STOP, ) +from homeassistant.exceptions import ConfigEntryNotReady from homeassistant.helpers import config_validation as cv from homeassistant.helpers.aiohttp_client import async_get_clientsession from homeassistant.helpers.dispatcher import ( @@ -129,7 +130,7 @@ async def async_setup_entry(hass, entry): server_config[CONF_URL], error, ) - return False + raise ConfigEntryNotReady except ( plexapi.exceptions.BadRequest, plexapi.exceptions.Unauthorized,