From f915a1c80982164775203bcd84f37335465ea61c Mon Sep 17 00:00:00 2001 From: Kane610 Date: Sat, 7 Apr 2018 23:18:49 +0200 Subject: [PATCH] Fix so it is possible to ignore discovered config entry handlers (#13741) * Fix so it is possible to ignore discovered config entry handlers * Improve efficiency --- homeassistant/components/discovery.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/discovery.py b/homeassistant/components/discovery.py index b2aa5b890a8..01ef36b778b 100644 --- a/homeassistant/components/discovery.py +++ b/homeassistant/components/discovery.py @@ -84,7 +84,8 @@ CONF_IGNORE = 'ignore' CONFIG_SCHEMA = vol.Schema({ vol.Required(DOMAIN): vol.Schema({ vol.Optional(CONF_IGNORE, default=[]): - vol.All(cv.ensure_list, [vol.In(SERVICE_HANDLERS)]) + vol.All(cv.ensure_list, [ + vol.In(list(CONFIG_ENTRY_HANDLERS) + list(SERVICE_HANDLERS))]) }), }, extra=vol.ALLOW_EXTRA)