mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
Ensure doorbird always prefers internal url (#88369)
* Ensure doorbird always uses internal url The doorbird should always use the internal url to ensure the webhooks work. The doorbird does not verify ssl so there is no concern about ssl matching according to the LAN-2-LAN API v0.32 Dec 21 2022 * adjust * Update homeassistant/components/doorbird/__init__.py
This commit is contained in:
parent
39067f61e4
commit
5c09d81f86
@ -251,7 +251,7 @@ class ConfiguredDoorBird:
|
|||||||
def register_events(self, hass: HomeAssistant) -> None:
|
def register_events(self, hass: HomeAssistant) -> None:
|
||||||
"""Register events on device."""
|
"""Register events on device."""
|
||||||
# Get the URL of this server
|
# Get the URL of this server
|
||||||
hass_url = get_url(hass)
|
hass_url = get_url(hass, prefer_external=False)
|
||||||
|
|
||||||
# Override url if another is specified in the configuration
|
# Override url if another is specified in the configuration
|
||||||
if self.custom_url is not None:
|
if self.custom_url is not None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user