mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 10:17:09 +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),
|
for component, conf_key in (('cover', CONF_COVERS),
|
||||||
('light', CONF_LIGHTS),
|
('light', CONF_LIGHTS),
|
||||||
('switch', CONF_SWITCHES)):
|
('switch', CONF_SWITCHES)):
|
||||||
|
if conf_key in config[DOMAIN]:
|
||||||
hass.async_create_task(
|
hass.async_create_task(
|
||||||
async_load_platform(hass, component, DOMAIN,
|
async_load_platform(hass, component, DOMAIN,
|
||||||
config[DOMAIN][conf_key], config))
|
config[DOMAIN][conf_key], config))
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user