async def async_step_import(self, conf: dict):
    'Import a configuration from config.yaml.'
    self.host = conf[CONF_HOST]
    self.token = conf[CONF_TOKEN]
    self.name = conf.get(CONF_NAME)
    self.model = conf.get(CONF_MODEL)
    self.context.update({'title_placeholders': {'name': f'YAML import {self.host}'}})
    return (await self.async_step_connect())
Import a configuration from config.yaml.
async def async_step_import(self, conf: dict):
    
    self.host = conf[CONF_HOST]
    self.token = conf[CONF_TOKEN]
    self.name = conf.get(CONF_NAME)
    self.model = conf.get(CONF_MODEL)
    self.context.update({'title_placeholders': {'name': f'YAML import {self.host}'}})
    return (await self.async_step_connect())