mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 17:27:52 +00:00
Fix native sync WebRTC offer (#129931)
This commit is contained in:
parent
361e0d4fc7
commit
232a6868ff
@ -848,7 +848,10 @@ class Camera(Entity, cached_properties=CACHED_PROPERTIES_WITH_ATTR_):
|
||||
]
|
||||
config.configuration.ice_servers.extend(ice_servers)
|
||||
|
||||
config.get_candidates_upfront = self._legacy_webrtc_provider is not None
|
||||
config.get_candidates_upfront = (
|
||||
self._supports_native_sync_webrtc
|
||||
or self._legacy_webrtc_provider is not None
|
||||
)
|
||||
|
||||
return config
|
||||
|
||||
|
@ -358,7 +358,7 @@ async def test_ws_get_client_config_sync_offer(
|
||||
assert msg["success"]
|
||||
assert msg["result"] == {
|
||||
"configuration": {},
|
||||
"getCandidatesUpfront": False,
|
||||
"getCandidatesUpfront": True,
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user