Get_url to prefer external URL if SSL configured (#66039)
This commit is contained in:
parent
7cc6770f83
commit
95a890c6e1
3 changed files with 30 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue