mirror of
https://github.com/esphome/esphome.git
synced 2024-12-26 17:17:46 +01:00
Fix Packages when using MQTT (#2210)
This commit is contained in:
parent
b5de43b225
commit
56225701f9
@ -1457,7 +1457,11 @@ class OnlyWith(Optional):
|
||||
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()}
|
||||
in [
|
||||
k
|
||||
for package in CORE.raw_config[CONF_PACKAGES].values()
|
||||
for k in package.keys()
|
||||
]
|
||||
):
|
||||
return self._default
|
||||
return vol.UNDEFINED
|
||||
|
Loading…
Reference in New Issue
Block a user