From b56e22d4ee2c12b068153c5c5f1e762a04f63dda Mon Sep 17 00:00:00 2001 From: Robert Resch Date: Tue, 8 Oct 2024 12:25:20 +0200 Subject: [PATCH] Use homeassistant STUN server (#127922) --- homeassistant/components/camera/__init__.py | 4 +--- tests/components/camera/test_webrtc.py | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/camera/__init__.py b/homeassistant/components/camera/__init__.py index e0d3ce1e4c2..1f1ac881b26 100644 --- a/homeassistant/components/camera/__init__.py +++ b/homeassistant/components/camera/__init__.py @@ -402,9 +402,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: ) async def get_ice_server() -> RTCIceServer: - # The following servers will replaced before the next stable release with - # STUN server provided by Home Assistant. Used Google ones for testing purposes. - return RTCIceServer(urls="stun:stun.l.google.com:19302") + return RTCIceServer(urls="stun:stun.home-assistant.io:3478") register_ice_server(hass, get_ice_server) return True diff --git a/tests/components/camera/test_webrtc.py b/tests/components/camera/test_webrtc.py index d304c7e5fb0..406c48ab203 100644 --- a/tests/components/camera/test_webrtc.py +++ b/tests/components/camera/test_webrtc.py @@ -210,7 +210,7 @@ async def test_ws_get_client_config( assert msg["type"] == TYPE_RESULT assert msg["success"] assert msg["result"] == { - "configuration": {"iceServers": [{"urls": "stun:stun.l.google.com:19302"}]} + "configuration": {"iceServers": [{"urls": "stun:stun.home-assistant.io:3478"}]} }