Detect use of deprecated base_url (#35353)
* Detect use of deprecated base_url * Update get_url helper * Update core migration * Migrate all tests
This commit is contained in:
1 parent
1be41b9de8
commit
e56dd8ed50
21 files changed
+308
-73
No files matched your search
@@ -1463,7 +1463,7 @@ class Config:
|
||||
if self.hass.config.api is None:
|
||||
return
|
||||
|
||||
base_url = yarl.URL(self.hass.config.api.base_url)
|
||||
base_url = yarl.URL(self.hass.config.api.deprecated_base_url)
|
||||
|
||||
# Check if this is an internal URL
|
||||
if str(base_url.host).endswith(".local") or (
|
||||
|
||||
Reference in new issue
Block a user