This commit is contained in:
Guillermo Ruffino 2020-10-23 00:06:05 -03:00
parent 2c14d134be
commit 8ef0f5b047

View File

@ -1170,8 +1170,8 @@ class OnlyWith(Optional):
# pylint: disable=unsupported-membership-test
if (self._component in CORE.raw_config or
(CONF_PACKAGES in CORE.raw_config and
self._component in
{list(x.keys())[0] for x in CORE.raw_config[CONF_PACKAGES].values()})):
self._component in
{list(x.keys())[0] for x in CORE.raw_config[CONF_PACKAGES].values()})):
return self._default
return vol.UNDEFINED