mirror of
https://github.com/home-assistant/core.git
synced 2026-05-22 16:30:27 +01:00
a4829330f6
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
16 lines
438 B
Python
16 lines
438 B
Python
"""Cloud util functions."""
|
|
|
|
from hass_nabucasa import Cloud
|
|
|
|
from homeassistant.components import http
|
|
from homeassistant.core import HomeAssistant
|
|
|
|
from .client import CloudClient
|
|
from .const import DOMAIN
|
|
|
|
|
|
def get_strict_connection_mode(hass: HomeAssistant) -> http.const.StrictConnectionMode:
|
|
"""Get the strict connection mode."""
|
|
cloud: Cloud[CloudClient] = hass.data[DOMAIN]
|
|
return cloud.client.prefs.strict_connection
|