Files
home-assistant-core/homeassistant/util/system_info.py
T

11 lines
237 B
Python

"""Util to gather system info."""
from functools import cache
import os
@cache
def is_official_image() -> bool:
"""Return True if Home Assistant is running in an official container."""
return os.path.isfile("/OFFICIAL_IMAGE")