Skip to content

Commit

Permalink
Fix native sync WebRTC offer (home-assistant#129931)
Browse files Browse the repository at this point in the history
  • Loading branch information
edenhaus authored and frenck committed Nov 6, 2024
1 parent 361e0d4 commit 232a686
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion homeassistant/components/camera/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,10 @@ def async_get_webrtc_client_configuration(self) -> WebRTCClientConfiguration:
]
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

Expand Down
2 changes: 1 addition & 1 deletion tests/components/camera/test_webrtc.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ async def test_ws_get_client_config_sync_offer(
assert msg["success"]
assert msg["result"] == {
"configuration": {},
"getCandidatesUpfront": False,
"getCandidatesUpfront": True,
}


Expand Down

0 comments on commit 232a686

Please sign in to comment.