mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 08:47:10 +00:00
Fix File entry setup config parsing whole YAML config (#117206)
Fix File entry setup config parsingwhole YAML config
This commit is contained in:
parent
db6e3f7cbf
commit
c21dac855a
@ -45,7 +45,10 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Import the YAML config into separate config entries
|
# Import the YAML config into separate config entries
|
||||||
for domain, items in config.items():
|
platforms_config = {
|
||||||
|
domain: config[domain] for domain in YAML_PLATFORMS if domain in config
|
||||||
|
}
|
||||||
|
for domain, items in platforms_config.items():
|
||||||
for item in items:
|
for item in items:
|
||||||
if item[CONF_PLATFORM] == DOMAIN:
|
if item[CONF_PLATFORM] == DOMAIN:
|
||||||
item[CONF_PLATFORM] = domain
|
item[CONF_PLATFORM] = domain
|
||||||
|
Loading…
x
Reference in New Issue
Block a user