def get_local_version():
    try:
        with open(VERSION_OUTPUT) as inp:
            for line in inp:
                match = CUR_VERSION.search(line)
                if match:
                    return match.group(1)
    except FileNotFoundError:
        return False
    return False
Parse the local version.
dataset/ETHPy150Open home-assistant/home-assistant/script/update_mdi.py/get_local_version