homeassistant-stubs 2024.11.0b2__py3-none-any.whl → 2024.11.0b3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- homeassistant-stubs/components/nest/camera.pyi +32 -17
- {homeassistant_stubs-2024.11.0b2.dist-info → homeassistant_stubs-2024.11.0b3.dist-info}/METADATA +2 -2
- {homeassistant_stubs-2024.11.0b2.dist-info → homeassistant_stubs-2024.11.0b3.dist-info}/RECORD +5 -5
- {homeassistant_stubs-2024.11.0b2.dist-info → homeassistant_stubs-2024.11.0b3.dist-info}/WHEEL +0 -0
- {homeassistant_stubs-2024.11.0b2.dist-info → homeassistant_stubs-2024.11.0b3.dist-info}/licenses/LICENSE +0 -0
@@ -1,9 +1,11 @@
|
|
1
|
+
import abc
|
1
2
|
import datetime
|
2
3
|
from .const import DATA_DEVICE_MANAGER as DATA_DEVICE_MANAGER, DOMAIN as DOMAIN
|
3
4
|
from .device_info import NestDeviceInfo as NestDeviceInfo
|
4
5
|
from _typeshed import Incomplete
|
6
|
+
from abc import ABC, abstractmethod
|
5
7
|
from collections.abc import Callable as Callable
|
6
|
-
from google_nest_sdm.camera_traits import RtspStream as RtspStream,
|
8
|
+
from google_nest_sdm.camera_traits import CameraLiveStreamTrait, RtspStream as RtspStream, WebRtcStream as WebRtcStream
|
7
9
|
from google_nest_sdm.device import Device as Device
|
8
10
|
from google_nest_sdm.device_manager import DeviceManager as DeviceManager
|
9
11
|
from homeassistant.components.camera import Camera as Camera, CameraEntityFeature as CameraEntityFeature, StreamType as StreamType, WebRTCAnswer as WebRTCAnswer, WebRTCClientConfiguration as WebRTCClientConfiguration, WebRTCSendMessage as WebRTCSendMessage
|
@@ -21,40 +23,53 @@ STREAM_EXPIRATION_BUFFER: Incomplete
|
|
21
23
|
|
22
24
|
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...
|
23
25
|
|
24
|
-
class
|
26
|
+
class NestCameraBaseEntity(Camera, ABC, metaclass=abc.ABCMeta):
|
25
27
|
_attr_has_entity_name: bool
|
26
28
|
_attr_name: Incomplete
|
29
|
+
_attr_is_streaming: bool
|
30
|
+
_attr_supported_features: Incomplete
|
27
31
|
_device: Incomplete
|
28
32
|
_attr_device_info: Incomplete
|
29
33
|
_attr_brand: Incomplete
|
30
34
|
_attr_model: Incomplete
|
31
|
-
_rtsp_stream: Incomplete
|
32
|
-
_webrtc_sessions: Incomplete
|
33
|
-
_create_stream_url_lock: Incomplete
|
34
|
-
_stream_refresh_unsub: Incomplete
|
35
|
-
_attr_is_streaming: bool
|
36
|
-
_attr_supported_features: Incomplete
|
37
|
-
_rtsp_live_stream_trait: Incomplete
|
38
35
|
_attr_unique_id: Incomplete
|
36
|
+
_stream_refresh_unsub: Incomplete
|
37
|
+
def __init__(self, device: Device) -> None: ...
|
38
|
+
@abstractmethod
|
39
|
+
def _stream_expires_at(self) -> datetime.datetime | None: ...
|
40
|
+
@abstractmethod
|
41
|
+
async def _async_refresh_stream(self) -> None: ...
|
42
|
+
def _schedule_stream_refresh(self) -> None: ...
|
43
|
+
async def _handle_stream_refresh(self, _: datetime.datetime) -> None: ...
|
44
|
+
async def async_added_to_hass(self) -> None: ...
|
45
|
+
async def async_will_remove_from_hass(self) -> None: ...
|
46
|
+
|
47
|
+
class NestRTSPEntity(NestCameraBaseEntity):
|
48
|
+
_rtsp_stream: RtspStream | None
|
49
|
+
_rtsp_live_stream_trait: CameraLiveStreamTrait
|
50
|
+
_create_stream_url_lock: Incomplete
|
39
51
|
def __init__(self, device: Device) -> None: ...
|
40
52
|
@property
|
41
53
|
def use_stream_for_stills(self) -> bool: ...
|
42
54
|
@property
|
43
|
-
def frontend_stream_type(self) -> StreamType | None: ...
|
44
|
-
@property
|
45
55
|
def available(self) -> bool: ...
|
46
56
|
async def stream_source(self) -> str | None: ...
|
47
|
-
def
|
48
|
-
def _schedule_stream_refresh(self) -> None: ...
|
49
|
-
async def _handle_stream_refresh(self, _: datetime.datetime) -> None: ...
|
57
|
+
def _stream_expires_at(self) -> datetime.datetime | None: ...
|
50
58
|
stream: Incomplete
|
51
|
-
async def
|
52
|
-
async def _handle_webrtc_stream_refresh(self) -> None: ...
|
59
|
+
async def _async_refresh_stream(self) -> None: ...
|
53
60
|
async def async_will_remove_from_hass(self) -> None: ...
|
54
|
-
|
61
|
+
|
62
|
+
class NestWebRTCEntity(NestCameraBaseEntity):
|
63
|
+
_webrtc_sessions: Incomplete
|
64
|
+
def __init__(self, device: Device) -> None: ...
|
65
|
+
@property
|
66
|
+
def frontend_stream_type(self) -> StreamType | None: ...
|
67
|
+
def _stream_expires_at(self) -> datetime.datetime | None: ...
|
68
|
+
async def _async_refresh_stream(self) -> None: ...
|
55
69
|
async def async_camera_image(self, width: int | None = None, height: int | None = None) -> bytes | None: ...
|
56
70
|
@classmethod
|
57
71
|
def placeholder_image(cls) -> bytes: ...
|
58
72
|
async def async_handle_async_webrtc_offer(self, offer_sdp: str, session_id: str, send_message: WebRTCSendMessage) -> None: ...
|
59
73
|
def close_webrtc_session(self, session_id: str) -> None: ...
|
60
74
|
def _async_get_webrtc_client_configuration(self) -> WebRTCClientConfiguration: ...
|
75
|
+
async def async_will_remove_from_hass(self) -> None: ...
|
{homeassistant_stubs-2024.11.0b2.dist-info → homeassistant_stubs-2024.11.0b3.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: homeassistant-stubs
|
3
|
-
Version: 2024.11.
|
3
|
+
Version: 2024.11.0b3
|
4
4
|
Summary: PEP 484 typing stubs for Home Assistant Core
|
5
5
|
Project-URL: Homepage, https://github.com/KapJI/homeassistant-stubs
|
6
6
|
Project-URL: Bug Tracker, https://github.com/KapJI/homeassistant-stubs/issues
|
@@ -18,7 +18,7 @@ Classifier: Topic :: Home Automation
|
|
18
18
|
Classifier: Topic :: Software Development
|
19
19
|
Classifier: Typing :: Typed
|
20
20
|
Requires-Python: <3.14,>=3.12
|
21
|
-
Requires-Dist: homeassistant==2024.11.
|
21
|
+
Requires-Dist: homeassistant==2024.11.0b3
|
22
22
|
Description-Content-Type: text/markdown
|
23
23
|
|
24
24
|
[](https://github.com/KapJI/homeassistant-stubs/actions/workflows/ci.yaml)
|
{homeassistant_stubs-2024.11.0b2.dist-info → homeassistant_stubs-2024.11.0b3.dist-info}/RECORD
RENAMED
@@ -2114,7 +2114,7 @@ homeassistant-stubs/components/neato/vacuum.pyi,sha256=kbM3yB04TMjnem0JRzmclNiAn
|
|
2114
2114
|
homeassistant-stubs/components/nest/__init__.pyi,sha256=2hduKHlE-1RXu6gqGaoL7HIJrML25m_yiYBOAI5YXgI,4356
|
2115
2115
|
homeassistant-stubs/components/nest/api.pyi,sha256=Ajp5Ws33oVifHhDcljQctwwW06kH-2hYcd46NrQdPrs,1826
|
2116
2116
|
homeassistant-stubs/components/nest/application_credentials.pyi,sha256=6FJeSY56LumWCAyaIGYgl_lYqbkON3G4JRInkguyBsE,394
|
2117
|
-
homeassistant-stubs/components/nest/camera.pyi,sha256=
|
2117
|
+
homeassistant-stubs/components/nest/camera.pyi,sha256=gkh7oTGHhzwnoS8WJClRfArfxFueC9nvVBA2xhUGnXM,3846
|
2118
2118
|
homeassistant-stubs/components/nest/climate.pyi,sha256=NHC3rQdyyAE3Js2mpK8-arZmnr6kKhvExY1NeJ_t_-A,3458
|
2119
2119
|
homeassistant-stubs/components/nest/config_flow.pyi,sha256=ou9XObZeU9KmVVIL7XiKrSKlGG3OsXeKEUW7ikMKeCs,3030
|
2120
2120
|
homeassistant-stubs/components/nest/const.pyi,sha256=z7Zxyy-jXKF2Juk28QZWqibzNo0gANo9oRKCymBxbcc,451
|
@@ -3733,7 +3733,7 @@ homeassistant-stubs/util/yaml/dumper.pyi,sha256=uQjW0KuME-gXVWgYJLNLoRDwDzVhhhgg
|
|
3733
3733
|
homeassistant-stubs/util/yaml/input.pyi,sha256=wuxpKYTXZL4MujFhqjHnRLv4VPYY6QPYd-Zji-Lz9Mo,383
|
3734
3734
|
homeassistant-stubs/util/yaml/loader.pyi,sha256=QiGKfosJZpv3z8MePSrXiwF8SSxVnaHgMhYZQ351nBM,4692
|
3735
3735
|
homeassistant-stubs/util/yaml/objects.pyi,sha256=YUlr0nf9ugzJT9J2YHaGV2fXu5opuyNvvHPqNW46m5I,707
|
3736
|
-
homeassistant_stubs-2024.11.
|
3737
|
-
homeassistant_stubs-2024.11.
|
3738
|
-
homeassistant_stubs-2024.11.
|
3739
|
-
homeassistant_stubs-2024.11.
|
3736
|
+
homeassistant_stubs-2024.11.0b3.dist-info/METADATA,sha256=fAA1lOU1eNXrSwQP1fuzVY1QQusQZ07QLb9DZ38hueE,2958
|
3737
|
+
homeassistant_stubs-2024.11.0b3.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
3738
|
+
homeassistant_stubs-2024.11.0b3.dist-info/licenses/LICENSE,sha256=_kHFjg-MAmJ-lXc7HiEjUzD3vZutVYKUVZZpAWcIuqo,1075
|
3739
|
+
homeassistant_stubs-2024.11.0b3.dist-info/RECORD,,
|
{homeassistant_stubs-2024.11.0b2.dist-info → homeassistant_stubs-2024.11.0b3.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|