mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 00:37:13 +00:00
Add conf_key check for LCN platform load (#21354)
This commit is contained in:
parent
197303b63e
commit
f20195ba75
@ -184,10 +184,10 @@ async def async_setup(hass, config):
|
||||
for component, conf_key in (('cover', CONF_COVERS),
|
||||
('light', CONF_LIGHTS),
|
||||
('switch', CONF_SWITCHES)):
|
||||
hass.async_create_task(
|
||||
async_load_platform(hass, component, DOMAIN,
|
||||
config[DOMAIN][conf_key], config))
|
||||
|
||||
if conf_key in config[DOMAIN]:
|
||||
hass.async_create_task(
|
||||
async_load_platform(hass, component, DOMAIN,
|
||||
config[DOMAIN][conf_key], config))
|
||||
return True
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user