()
Clear old files from storage.
Clear old files from storage.
Clear old files from storage .
def _clear_storage():
    """Clear old files from storage."""
    hacs = get_hacs()
    storagefiles = ["hacs"]
    for s_f in storagefiles:
        path = f"{hacs.core.config_path}/.storage/{s_f}"
        if os.path.isfile(path):
            hacs.log.info(f"Cleaning up old storage file {path}")
            os.remove(path)
def _clear_storage ( ) : hacs = get_hacs ( ) storagefiles = [ "hacs" ] for s_f in storagefiles : path = f"{hacs.core.config_path}/.storage/{s_f}" if os . path . isfile ( path ) : hacs . log . info ( f"Cleaning up old storage file {path}" ) os . remove ( path )