mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 01:08:12 +00:00

Co-authored-by: Franck Nijhof <frenck@frenck.nl> Co-authored-by: Sander Hoentjen <sander@hoentjen.eu> Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io> Co-authored-by: Robert Resch <robert@resch.dev>
13 lines
273 B
Python
13 lines
273 B
Python
"""Util to gather system info."""
|
|
|
|
from __future__ import annotations
|
|
|
|
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")
|