mirror of
https://github.com/home-assistant/core.git
synced 2026-05-28 19:26:11 +01:00
11 lines
237 B
Python
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")
|