mirror of
https://github.com/home-assistant/core.git
synced 2025-07-10 14:57:09 +00:00
Ignore WebRTC candidates for nest cameras (#130294)
This commit is contained in:
parent
d8b55d39e4
commit
7f9ec2a79e
@ -19,6 +19,7 @@ from google_nest_sdm.camera_traits import (
|
|||||||
from google_nest_sdm.device import Device
|
from google_nest_sdm.device import Device
|
||||||
from google_nest_sdm.device_manager import DeviceManager
|
from google_nest_sdm.device_manager import DeviceManager
|
||||||
from google_nest_sdm.exceptions import ApiException
|
from google_nest_sdm.exceptions import ApiException
|
||||||
|
from webrtc_models import RTCIceCandidate
|
||||||
|
|
||||||
from homeassistant.components.camera import (
|
from homeassistant.components.camera import (
|
||||||
Camera,
|
Camera,
|
||||||
@ -302,6 +303,12 @@ class NestWebRTCEntity(NestCameraBaseEntity):
|
|||||||
)
|
)
|
||||||
self._refresh_unsub[session_id] = refresh.unsub
|
self._refresh_unsub[session_id] = refresh.unsub
|
||||||
|
|
||||||
|
async def async_on_webrtc_candidate(
|
||||||
|
self, session_id: str, candidate: RTCIceCandidate
|
||||||
|
) -> None:
|
||||||
|
"""Ignore WebRTC candidates for Nest cloud based cameras."""
|
||||||
|
return
|
||||||
|
|
||||||
@callback
|
@callback
|
||||||
def close_webrtc_session(self, session_id: str) -> None:
|
def close_webrtc_session(self, session_id: str) -> None:
|
||||||
"""Close a WebRTC session."""
|
"""Close a WebRTC session."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user