diff --git a/homeassistant/components/velux/__init__.py b/homeassistant/components/velux/__init__.py index 64da09b7ac2..9bc9c93e0d1 100644 --- a/homeassistant/components/velux/__init__.py +++ b/homeassistant/components/velux/__init__.py @@ -29,11 +29,14 @@ CONFIG_SCHEMA = vol.Schema( async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: """Set up the velux component.""" + if DOMAIN not in config: + return True + hass.async_create_task( hass.config_entries.flow.async_init( DOMAIN, context={"source": SOURCE_IMPORT}, - data=config, + data=config[DOMAIN], ) )