def load_config_file(config_file: str) -> HmipConfig:
    """Loads the config ini file.
    :raises a FileNotFoundError when the config file does not exist."""
    _config = configparser.ConfigParser()
    with open(config_file, "r") as fl:
        _config.read_file(fl)
        logging_filename = _config.get("LOGGING", "FileName", fallback="hmip.log")
        if logging_filename == "None":
            logging_filename = None

        _hmip_config = HmipConfig(
            _config["AUTH"]["AuthToken"],
            _config["AUTH"]["AccessPoint"],
            int(_config.get("LOGGING", "Level", fallback=30)),
            logging_filename,
            _config._sections,
        )
        return _hmip_config
def load_config_file ( config_file : str ) -> HmipConfig : _config = configparser . ConfigParser ( ) with open ( config_file , "r" ) as fl : _config . read_file ( fl ) logging_filename = _config . get ( "LOGGING" , "FileName" , fallback = "hmip.log" ) if logging_filename == "None" : logging_filename = None _hmip_config = HmipConfig ( _config [ "AUTH" ] [ "AuthToken" ] , _config [ "AUTH" ] [ "AccessPoint" ] , int ( _config . get ( "LOGGING" , "Level" , fallback = 30 ) ) , logging_filename , _config . _sections , ) return _hmip_config
Loads the config ini file.
    :raises a FileNotFoundError when the config file does not exist.