mirror of
https://github.com/elisspace/core.git
synced 2026-09-26 12:37:12 +00:00
Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch> Co-authored-by: Mike Degatano <michael.degatano@gmail.com>
12 lines
207 B
Python
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
|