async def check_config_mode(self):
    'Check if are in configuration mode. Return boolean'
    logger.info('Host {}: Checking configuration mode'.format(self._host))
    check_string = type(self)._config_check
    self._stdin.write(self._normalize_cmd('\n'))
    output = (await self._read_until_prompt())
    return (check_string in output)
Check if are in configuration mode. Return boolean
async def check_config_mode(self):
    
    logger.info('Host {}: Checking configuration mode'.format(self._host))
    check_string = type(self)._config_check
    self._stdin.write(self._normalize_cmd('\n'))
    output = (await self._read_until_prompt())
    return (check_string in output)