mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 21:44:55 +01:00
Fix Packages when using MQTT (#2210)
This commit is contained in:
parent
b5de43b225
commit
56225701f9
1 changed files with 5 additions and 1 deletions
|
@ -1457,7 +1457,11 @@ class OnlyWith(Optional):
|
||||||
if self._component in CORE.raw_config or (
|
if self._component in CORE.raw_config or (
|
||||||
CONF_PACKAGES in CORE.raw_config
|
CONF_PACKAGES in CORE.raw_config
|
||||||
and self._component
|
and self._component
|
||||||
in {list(x.keys())[0] for x in CORE.raw_config[CONF_PACKAGES].values()}
|
in [
|
||||||
|
k
|
||||||
|
for package in CORE.raw_config[CONF_PACKAGES].values()
|
||||||
|
for k in package.keys()
|
||||||
|
]
|
||||||
):
|
):
|
||||||
return self._default
|
return self._default
|
||||||
return vol.UNDEFINED
|
return vol.UNDEFINED
|
||||||
|
|
Loading…
Reference in a new issue