Get_url to prefer external URL if SSL configured (#66039)

This commit is contained in:
Paulus Schoutsen 2022-02-07 15:44:02 -08:00 committed by GitHub
parent 7cc6770f83
commit 95a890c6e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 30 additions and 5 deletions

View file

@ -89,7 +89,7 @@ from .util.unit_system import IMPERIAL_SYSTEM, METRIC_SYSTEM, UnitSystem
# Typing imports that create a circular dependency
if TYPE_CHECKING:
from .auth import AuthManager
from .components.http import HomeAssistantHTTP
from .components.http import ApiConfig, HomeAssistantHTTP
from .config_entries import ConfigEntries
@ -1701,8 +1701,8 @@ class Config:
# List of loaded components
self.components: set[str] = set()
# API (HTTP) server configuration, see components.http.ApiConfig
self.api: Any | None = None
# API (HTTP) server configuration
self.api: ApiConfig | None = None
# Directory that holds the configuration
self.config_dir: str | None = None