1
0
mirror of https://github.com/home-assistant/core.git synced 2026-05-28 19:26:11 +01:00
Files
core/homeassistant/util/system_info.py
2026-04-30 20:34:43 +02:00

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")