Files
core/homeassistant/helpers/supervisor.py
T
2022-02-22 13:59:40 -08:00

12 lines
207 B
Python

"""Supervisor helper."""
import os
from homeassistant.core import callback
@callback
def has_supervisor() -> bool:
"""Return true if supervisor is available."""
return "SUPERVISOR" in os.environ