20 lines
462 B
Python
20 lines
462 B
Python
"""HTTP specific constants."""
|
|
|
|
from enum import StrEnum
|
|
from typing import Final
|
|
|
|
from homeassistant.helpers.http import KEY_AUTHENTICATED, KEY_HASS # noqa: F401
|
|
|
|
DOMAIN: Final = "http"
|
|
|
|
KEY_HASS_USER: Final = "hass_user"
|
|
KEY_HASS_REFRESH_TOKEN_ID: Final = "hass_refresh_token_id"
|
|
|
|
|
|
class StrictConnectionMode(StrEnum):
|
|
"""Enum for strict connection mode."""
|
|
|
|
DISABLED = "disabled"
|
|
GUARD_PAGE = "guard_page"
|
|
DROP_CONNECTION = "drop_connection"
|