Allow configuring WebRTC stun and turn servers (#128984)

* Allow configuring WebRTC stun and turn servers

* Add tests

* Remove class WebRTCCoreConfiguration
This commit is contained in:
Erik Montnemery
2024-10-23 14:41:45 +02:00
committed by GitHub
parent 4e8f878d83
commit 487593af38
8 changed files with 249 additions and 68 deletions

View File

@ -119,6 +119,7 @@ from .util.unit_system import (
UnitSystem,
get_unit_system,
)
from .util.webrtc import RTCConfiguration
# Typing imports that create a circular dependency
if TYPE_CHECKING:
@ -2966,6 +2967,8 @@ class Config:
# If Home Assistant is running in safe mode
self.safe_mode: bool = False
self.webrtc = RTCConfiguration()
def async_initialize(self) -> None:
"""Finish initializing a config object.