async def async_step_manual(self, user_input=None):
    'Configure a xiaomi miio device Manually.'
    errors = {}
    if (user_input is not None):
        self.token = user_input[CONF_TOKEN]
        if user_input.get(CONF_HOST):
            self.host = user_input[CONF_HOST]
        return (await self.async_step_connect())
    if self.host:
        schema = vol.Schema(DEVICE_SETTINGS)
    else:
        schema = DEVICE_CONFIG
    return self.async_show_form(step_id='manual', data_schema=schema, errors=errors)
Configure a xiaomi miio device Manually.
async def async_step_manual(self, user_input=None):
    
    errors = {}
    if (user_input is not None):
        self.token = user_input[CONF_TOKEN]
        if user_input.get(CONF_HOST):
            self.host = user_input[CONF_HOST]
        return (await self.async_step_connect())
    if self.host:
        schema = vol.Schema(DEVICE_SETTINGS)
    else:
        schema = DEVICE_CONFIG
    return self.async_show_form(step_id='manual', data_schema=schema, errors=errors)