homeassistant-stubs 2024.6.1__py3-none-any.whl → 2024.6.3__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/group/sensor.pyi +5 -2
- homeassistant-stubs/components/recorder/statistics.pyi +2 -1
- homeassistant-stubs/components/shelly/coordinator.pyi +1 -0
- homeassistant-stubs/components/synology_dsm/const.pyi +1 -1
- homeassistant-stubs/components/unifiprotect/__init__.pyi +3 -2
- homeassistant-stubs/components/unifiprotect/binary_sensor.pyi +2 -2
- homeassistant-stubs/components/unifiprotect/button.pyi +1 -1
- homeassistant-stubs/components/unifiprotect/camera.pyi +1 -1
- homeassistant-stubs/components/unifiprotect/config_flow.pyi +1 -1
- homeassistant-stubs/components/unifiprotect/data.pyi +2 -2
- homeassistant-stubs/components/unifiprotect/entity.pyi +1 -1
- homeassistant-stubs/components/unifiprotect/light.pyi +1 -1
- homeassistant-stubs/components/unifiprotect/lock.pyi +1 -1
- homeassistant-stubs/components/unifiprotect/media_player.pyi +1 -1
- homeassistant-stubs/components/unifiprotect/media_source.pyi +1 -1
- homeassistant-stubs/components/unifiprotect/migrate.pyi +2 -2
- homeassistant-stubs/components/unifiprotect/models.pyi +1 -1
- homeassistant-stubs/components/unifiprotect/number.pyi +1 -1
- homeassistant-stubs/components/unifiprotect/repairs.pyi +2 -2
- homeassistant-stubs/components/unifiprotect/select.pyi +2 -2
- homeassistant-stubs/components/unifiprotect/sensor.pyi +1 -1
- homeassistant-stubs/components/unifiprotect/services.pyi +2 -2
- homeassistant-stubs/components/unifiprotect/switch.pyi +1 -1
- homeassistant-stubs/components/unifiprotect/text.pyi +1 -1
- homeassistant-stubs/components/unifiprotect/utils.pyi +2 -2
- homeassistant-stubs/components/unifiprotect/views.pyi +1 -1
- homeassistant-stubs/helpers/llm.pyi +2 -1
- {homeassistant_stubs-2024.6.1.dist-info → homeassistant_stubs-2024.6.3.dist-info}/METADATA +2 -2
- {homeassistant_stubs-2024.6.1.dist-info → homeassistant_stubs-2024.6.3.dist-info}/RECORD +31 -35
- homeassistant-stubs/components/electrasmart/__init__.pyi +0 -12
- homeassistant-stubs/components/electrasmart/climate.pyi +0 -64
- homeassistant-stubs/components/electrasmart/config_flow.pyi +0 -24
- homeassistant-stubs/components/electrasmart/const.pyi +0 -10
- {homeassistant_stubs-2024.6.1.dist-info → homeassistant_stubs-2024.6.3.dist-info}/LICENSE +0 -0
- {homeassistant_stubs-2024.6.1.dist-info → homeassistant_stubs-2024.6.3.dist-info}/WHEEL +0 -0
@@ -5,10 +5,11 @@ from collections.abc import Callable as Callable
|
|
5
5
|
from homeassistant.components.sensor import CONF_STATE_CLASS as CONF_STATE_CLASS, DEVICE_CLASSES_SCHEMA as DEVICE_CLASSES_SCHEMA, DEVICE_CLASS_UNITS as DEVICE_CLASS_UNITS, DOMAIN as DOMAIN, STATE_CLASSES_SCHEMA as STATE_CLASSES_SCHEMA, SensorDeviceClass as SensorDeviceClass, SensorEntity as SensorEntity, SensorStateClass as SensorStateClass, UNIT_CONVERTERS as UNIT_CONVERTERS
|
6
6
|
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
7
7
|
from homeassistant.const import ATTR_ENTITY_ID as ATTR_ENTITY_ID, CONF_DEVICE_CLASS as CONF_DEVICE_CLASS, CONF_ENTITIES as CONF_ENTITIES, CONF_NAME as CONF_NAME, CONF_TYPE as CONF_TYPE, CONF_UNIQUE_ID as CONF_UNIQUE_ID, CONF_UNIT_OF_MEASUREMENT as CONF_UNIT_OF_MEASUREMENT, STATE_UNAVAILABLE as STATE_UNAVAILABLE, STATE_UNKNOWN as STATE_UNKNOWN
|
8
|
-
from homeassistant.core import HomeAssistant as HomeAssistant, State as State, callback as callback
|
8
|
+
from homeassistant.core import CALLBACK_TYPE as CALLBACK_TYPE, Event as Event, EventStateChangedData as EventStateChangedData, HomeAssistant as HomeAssistant, State as State, callback as callback
|
9
9
|
from homeassistant.exceptions import HomeAssistantError as HomeAssistantError
|
10
10
|
from homeassistant.helpers.entity import get_capability as get_capability, get_device_class as get_device_class, get_unit_of_measurement as get_unit_of_measurement
|
11
11
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
|
12
|
+
from homeassistant.helpers.event import async_track_state_change_event as async_track_state_change_event
|
12
13
|
from homeassistant.helpers.issue_registry import IssueSeverity as IssueSeverity, async_create_issue as async_create_issue, async_delete_issue as async_delete_issue
|
13
14
|
from homeassistant.helpers.typing import ConfigType as ConfigType, DiscoveryInfoType as DiscoveryInfoType, StateType as StateType
|
14
15
|
from typing import Any
|
@@ -58,6 +59,7 @@ class SensorGroup(GroupEntity, SensorEntity):
|
|
58
59
|
_native_unit_of_measurement: Incomplete
|
59
60
|
_valid_units: Incomplete
|
60
61
|
_can_convert: bool
|
62
|
+
calculate_attributes_later: Incomplete
|
61
63
|
_attr_name: Incomplete
|
62
64
|
_attr_extra_state_attributes: Incomplete
|
63
65
|
_attr_unique_id: Incomplete
|
@@ -67,10 +69,11 @@ class SensorGroup(GroupEntity, SensorEntity):
|
|
67
69
|
_state_incorrect: Incomplete
|
68
70
|
_extra_state_attribute: Incomplete
|
69
71
|
def __init__(self, hass: HomeAssistant, unique_id: str | None, name: str, entity_ids: list[str], ignore_non_numeric: bool, sensor_type: str, unit_of_measurement: str | None, state_class: SensorStateClass | None, device_class: SensorDeviceClass | None) -> None: ...
|
72
|
+
async def async_added_to_hass(self) -> None: ...
|
70
73
|
_attr_state_class: Incomplete
|
71
74
|
_attr_device_class: Incomplete
|
72
75
|
_attr_native_unit_of_measurement: Incomplete
|
73
|
-
async def
|
76
|
+
async def calculate_state_attributes(self, event: Event[EventStateChangedData] | None = None) -> None: ...
|
74
77
|
_attr_native_value: Incomplete
|
75
78
|
def async_update_group_state(self) -> None: ...
|
76
79
|
@property
|
@@ -110,7 +110,8 @@ def _generate_max_mean_min_statistic_in_sub_period_stmt(columns: Select, start_t
|
|
110
110
|
def _get_max_mean_min_statistic_in_sub_period(session: Session, result: dict[str, float], start_time: datetime | None, end_time: datetime | None, table: type[StatisticsBase], types: set[Literal['max', 'mean', 'min', 'change']], metadata_id: int) -> None: ...
|
111
111
|
def _get_max_mean_min_statistic(session: Session, head_start_time: datetime | None, head_end_time: datetime | None, main_start_time: datetime | None, main_end_time: datetime | None, tail_start_time: datetime | None, tail_end_time: datetime | None, tail_only: bool, metadata_id: int, types: set[Literal['max', 'mean', 'min', 'change']]) -> dict[str, float | None]: ...
|
112
112
|
def _first_statistic(session: Session, table: type[StatisticsBase], metadata_id: int) -> datetime | None: ...
|
113
|
-
def
|
113
|
+
def _last_statistic(session: Session, table: type[StatisticsBase], metadata_id: int) -> datetime | None: ...
|
114
|
+
def _get_oldest_sum_statistic(session: Session, head_start_time: datetime | None, main_start_time: datetime | None, tail_start_time: datetime | None, oldest_stat: datetime | None, oldest_5_min_stat: datetime | None, tail_only: bool, metadata_id: int) -> float | None: ...
|
114
115
|
def _get_newest_sum_statistic(session: Session, head_start_time: datetime | None, head_end_time: datetime | None, main_start_time: datetime | None, main_end_time: datetime | None, tail_start_time: datetime | None, tail_end_time: datetime | None, tail_only: bool, metadata_id: int) -> float | None: ...
|
115
116
|
def statistic_during_period(hass: HomeAssistant, start_time: datetime | None, end_time: datetime | None, statistic_id: str, types: set[Literal['max', 'mean', 'min', 'change']] | None, units: dict[str, str] | None) -> dict[str, Any]: ...
|
116
117
|
|
@@ -85,6 +85,7 @@ class ShellyRpcCoordinator(ShellyCoordinatorBase[RpcDevice]):
|
|
85
85
|
async def _async_update_data(self) -> None: ...
|
86
86
|
async def _async_disconnected(self, reconnect: bool) -> None: ...
|
87
87
|
def _async_run_disconnected_events(self) -> None: ...
|
88
|
+
last_update_success: bool
|
88
89
|
async def _async_connected(self) -> None: ...
|
89
90
|
async def _async_run_connected_events(self) -> None: ...
|
90
91
|
async def _async_connect_ble_scanner(self) -> None: ...
|
@@ -16,7 +16,7 @@ DEFAULT_VERIFY_SSL: bool
|
|
16
16
|
DEFAULT_PORT: int
|
17
17
|
DEFAULT_PORT_SSL: int
|
18
18
|
DEFAULT_SCAN_INTERVAL: int
|
19
|
-
DEFAULT_TIMEOUT:
|
19
|
+
DEFAULT_TIMEOUT: Incomplete
|
20
20
|
DEFAULT_SNAPSHOT_QUALITY = SNAPSHOT_PROFILE_BALANCED
|
21
21
|
ENTITY_UNIT_LOAD: str
|
22
22
|
SIGNAL_CAMERA_SOURCE_CHANGED: str
|
@@ -13,12 +13,13 @@ from homeassistant.exceptions import ConfigEntryAuthFailed as ConfigEntryAuthFai
|
|
13
13
|
from homeassistant.helpers import device_registry as dr
|
14
14
|
from homeassistant.helpers.issue_registry import IssueSeverity as IssueSeverity
|
15
15
|
from homeassistant.helpers.typing import ConfigType as ConfigType
|
16
|
-
from
|
17
|
-
from
|
16
|
+
from uiprotect.data import Bootstrap as Bootstrap
|
17
|
+
from uiprotect.test_util.anonymize import anonymize_data as anonymize_data
|
18
18
|
|
19
19
|
_LOGGER: Incomplete
|
20
20
|
SCAN_INTERVAL: Incomplete
|
21
21
|
CONFIG_SCHEMA: Incomplete
|
22
|
+
EARLY_ACCESS_URL: str
|
22
23
|
|
23
24
|
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: ...
|
24
25
|
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: ...
|
@@ -10,9 +10,9 @@ from homeassistant.const import EntityCategory as EntityCategory
|
|
10
10
|
from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
|
11
11
|
from homeassistant.helpers.dispatcher import async_dispatcher_connect as async_dispatcher_connect
|
12
12
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
|
13
|
-
from pyunifiprotect.data import Camera, Light as Light, NVR as NVR, ProtectAdoptableDeviceModel as ProtectAdoptableDeviceModel, ProtectModelWithId as ProtectModelWithId, Sensor
|
14
|
-
from pyunifiprotect.data.nvr import UOSDisk as UOSDisk
|
15
13
|
from typing import Any
|
14
|
+
from uiprotect.data import Camera, Light as Light, NVR as NVR, ProtectAdoptableDeviceModel as ProtectAdoptableDeviceModel, ProtectModelWithId as ProtectModelWithId, Sensor
|
15
|
+
from uiprotect.data.nvr import UOSDisk as UOSDisk
|
16
16
|
|
17
17
|
_LOGGER: Incomplete
|
18
18
|
_KEY_DOOR: str
|
@@ -10,8 +10,8 @@ from homeassistant.const import Platform as Platform
|
|
10
10
|
from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
|
11
11
|
from homeassistant.helpers.dispatcher import async_dispatcher_connect as async_dispatcher_connect
|
12
12
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
|
13
|
-
from pyunifiprotect.data import ProtectAdoptableDeviceModel, ProtectModelWithId as ProtectModelWithId
|
14
13
|
from typing import Final
|
14
|
+
from uiprotect.data import ProtectAdoptableDeviceModel, ProtectModelWithId as ProtectModelWithId
|
15
15
|
|
16
16
|
_LOGGER: Incomplete
|
17
17
|
|
@@ -10,8 +10,8 @@ from homeassistant.core import HomeAssistant as HomeAssistant, callback as callb
|
|
10
10
|
from homeassistant.helpers.dispatcher import async_dispatcher_connect as async_dispatcher_connect
|
11
11
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
|
12
12
|
from homeassistant.helpers.issue_registry import IssueSeverity as IssueSeverity
|
13
|
-
from pyunifiprotect.data import Camera as UFPCamera, CameraChannel as CameraChannel, ProtectAdoptableDeviceModel as ProtectAdoptableDeviceModel, ProtectModelWithId as ProtectModelWithId
|
14
13
|
from typing import Any
|
14
|
+
from uiprotect.data import Camera as UFPCamera, CameraChannel as CameraChannel, ProtectAdoptableDeviceModel as ProtectAdoptableDeviceModel, ProtectModelWithId as ProtectModelWithId
|
15
15
|
|
16
16
|
_LOGGER: Incomplete
|
17
17
|
|
@@ -13,8 +13,8 @@ from homeassistant.helpers.storage import STORAGE_DIR as STORAGE_DIR
|
|
13
13
|
from homeassistant.helpers.typing import DiscoveryInfoType as DiscoveryInfoType
|
14
14
|
from homeassistant.loader import async_get_integration as async_get_integration
|
15
15
|
from homeassistant.util.network import is_ip_address as is_ip_address
|
16
|
-
from pyunifiprotect.data import NVR as NVR
|
17
16
|
from typing import Any
|
17
|
+
from uiprotect.data import NVR as NVR
|
18
18
|
|
19
19
|
_LOGGER: Incomplete
|
20
20
|
ENTRY_FAILURE_STATES: Incomplete
|
@@ -7,9 +7,9 @@ from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
|
7
7
|
from homeassistant.core import CALLBACK_TYPE as CALLBACK_TYPE, HomeAssistant as HomeAssistant, callback as callback
|
8
8
|
from homeassistant.helpers.dispatcher import async_dispatcher_send as async_dispatcher_send
|
9
9
|
from homeassistant.helpers.event import async_track_time_interval as async_track_time_interval
|
10
|
-
from pyunifiprotect import ProtectApiClient as ProtectApiClient
|
11
|
-
from pyunifiprotect.data import Bootstrap as Bootstrap, ModelType, NVR, ProtectAdoptableDeviceModel, WSSubscriptionMessage as WSSubscriptionMessage
|
12
10
|
from typing import Any
|
11
|
+
from uiprotect import ProtectApiClient as ProtectApiClient
|
12
|
+
from uiprotect.data import Bootstrap as Bootstrap, ModelType, NVR, ProtectAdoptableDeviceModel, WSSubscriptionMessage as WSSubscriptionMessage
|
13
13
|
|
14
14
|
_LOGGER: Incomplete
|
15
15
|
ProtectDeviceType: Incomplete
|
@@ -7,8 +7,8 @@ from homeassistant.core import callback as callback
|
|
7
7
|
from homeassistant.helpers.device_registry import DeviceInfo as DeviceInfo
|
8
8
|
from homeassistant.helpers.entity import Entity as Entity, EntityDescription as EntityDescription
|
9
9
|
from homeassistant.helpers.typing import UNDEFINED as UNDEFINED
|
10
|
-
from pyunifiprotect.data import Event as Event, ModelType, NVR as NVR, ProtectAdoptableDeviceModel, ProtectModelWithId as ProtectModelWithId
|
11
10
|
from typing import Any
|
11
|
+
from uiprotect.data import Event as Event, ModelType, NVR as NVR, ProtectAdoptableDeviceModel, ProtectModelWithId as ProtectModelWithId
|
12
12
|
|
13
13
|
_LOGGER: Incomplete
|
14
14
|
|
@@ -7,8 +7,8 @@ from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
|
7
7
|
from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
|
8
8
|
from homeassistant.helpers.dispatcher import async_dispatcher_connect as async_dispatcher_connect
|
9
9
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
|
10
|
-
from pyunifiprotect.data import Light as Light, ProtectAdoptableDeviceModel as ProtectAdoptableDeviceModel, ProtectModelWithId as ProtectModelWithId
|
11
10
|
from typing import Any
|
11
|
+
from uiprotect.data import Light as Light, ProtectAdoptableDeviceModel as ProtectAdoptableDeviceModel, ProtectModelWithId as ProtectModelWithId
|
12
12
|
|
13
13
|
_LOGGER: Incomplete
|
14
14
|
|
@@ -7,8 +7,8 @@ from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
|
7
7
|
from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
|
8
8
|
from homeassistant.helpers.dispatcher import async_dispatcher_connect as async_dispatcher_connect
|
9
9
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
|
10
|
-
from pyunifiprotect.data import Doorlock, ProtectAdoptableDeviceModel as ProtectAdoptableDeviceModel, ProtectModelWithId as ProtectModelWithId
|
11
10
|
from typing import Any
|
11
|
+
from uiprotect.data import Doorlock, ProtectAdoptableDeviceModel as ProtectAdoptableDeviceModel, ProtectModelWithId as ProtectModelWithId
|
12
12
|
|
13
13
|
_LOGGER: Incomplete
|
14
14
|
|
@@ -9,8 +9,8 @@ from homeassistant.core import HomeAssistant as HomeAssistant, callback as callb
|
|
9
9
|
from homeassistant.exceptions import HomeAssistantError as HomeAssistantError
|
10
10
|
from homeassistant.helpers.dispatcher import async_dispatcher_connect as async_dispatcher_connect
|
11
11
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
|
12
|
-
from pyunifiprotect.data import Camera, ProtectAdoptableDeviceModel as ProtectAdoptableDeviceModel, ProtectModelWithId as ProtectModelWithId
|
13
12
|
from typing import Any
|
13
|
+
from uiprotect.data import Camera, ProtectAdoptableDeviceModel as ProtectAdoptableDeviceModel, ProtectModelWithId as ProtectModelWithId
|
14
14
|
|
15
15
|
_LOGGER: Incomplete
|
16
16
|
|
@@ -10,8 +10,8 @@ from homeassistant.components.media_source.models import BrowseMediaSource as Br
|
|
10
10
|
from homeassistant.const import Platform as Platform
|
11
11
|
from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
|
12
12
|
from homeassistant.helpers import entity_registry as er
|
13
|
-
from pyunifiprotect.data import Camera, Event, EventType
|
14
13
|
from typing import Any, NoReturn
|
14
|
+
from uiprotect.data import Camera, Event, EventType
|
15
15
|
|
16
16
|
VIDEO_FORMAT: str
|
17
17
|
THUMBNAIL_WIDTH: int
|
@@ -6,9 +6,9 @@ from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
|
6
6
|
from homeassistant.const import Platform as Platform
|
7
7
|
from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
|
8
8
|
from homeassistant.helpers.issue_registry import IssueSeverity as IssueSeverity
|
9
|
-
from pyunifiprotect import ProtectApiClient as ProtectApiClient
|
10
|
-
from pyunifiprotect.data import Bootstrap as Bootstrap
|
11
9
|
from typing import TypedDict
|
10
|
+
from uiprotect import ProtectApiClient as ProtectApiClient
|
11
|
+
from uiprotect.data import Bootstrap as Bootstrap
|
12
12
|
|
13
13
|
_LOGGER: Incomplete
|
14
14
|
|
@@ -4,8 +4,8 @@ from collections.abc import Callable as Callable, Coroutine
|
|
4
4
|
from dataclasses import dataclass
|
5
5
|
from enum import Enum
|
6
6
|
from homeassistant.helpers.entity import EntityDescription as EntityDescription
|
7
|
-
from pyunifiprotect.data import Event as Event, NVR, ProtectAdoptableDeviceModel
|
8
7
|
from typing import Any, Generic, TypeVar
|
8
|
+
from uiprotect.data import Event as Event, NVR, ProtectAdoptableDeviceModel
|
9
9
|
|
10
10
|
_LOGGER: Incomplete
|
11
11
|
T = TypeVar('T', bound=ProtectAdoptableDeviceModel | NVR)
|
@@ -10,8 +10,8 @@ from homeassistant.const import EntityCategory as EntityCategory, PERCENTAGE as
|
|
10
10
|
from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
|
11
11
|
from homeassistant.helpers.dispatcher import async_dispatcher_connect as async_dispatcher_connect
|
12
12
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
|
13
|
-
from pyunifiprotect.data import Camera as Camera, Doorlock, Light, ProtectAdoptableDeviceModel as ProtectAdoptableDeviceModel, ProtectModelWithId as ProtectModelWithId
|
14
13
|
from typing import Any
|
14
|
+
from uiprotect.data import Camera as Camera, Doorlock, Light, ProtectAdoptableDeviceModel as ProtectAdoptableDeviceModel, ProtectModelWithId as ProtectModelWithId
|
15
15
|
|
16
16
|
_LOGGER: Incomplete
|
17
17
|
|
@@ -4,8 +4,8 @@ from homeassistant import data_entry_flow as data_entry_flow
|
|
4
4
|
from homeassistant.components.repairs import ConfirmRepairFlow as ConfirmRepairFlow, RepairsFlow as RepairsFlow
|
5
5
|
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
6
6
|
from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
|
7
|
-
from
|
8
|
-
from
|
7
|
+
from uiprotect import ProtectApiClient as ProtectApiClient
|
8
|
+
from uiprotect.data import Bootstrap as Bootstrap, Camera as Camera
|
9
9
|
|
10
10
|
class ProtectRepair(RepairsFlow):
|
11
11
|
_api: ProtectApiClient
|
@@ -13,9 +13,9 @@ from homeassistant.const import EntityCategory as EntityCategory
|
|
13
13
|
from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
|
14
14
|
from homeassistant.helpers.dispatcher import async_dispatcher_connect as async_dispatcher_connect
|
15
15
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
|
16
|
-
from pyunifiprotect.api import ProtectApiClient as ProtectApiClient
|
17
|
-
from pyunifiprotect.data import Camera, Doorlock, Light, ProtectAdoptableDeviceModel as ProtectAdoptableDeviceModel, ProtectModelWithId as ProtectModelWithId, Sensor, Viewer
|
18
16
|
from typing import Any, Final
|
17
|
+
from uiprotect.api import ProtectApiClient as ProtectApiClient
|
18
|
+
from uiprotect.data import Camera, Doorlock, Light, ProtectAdoptableDeviceModel as ProtectAdoptableDeviceModel, ProtectModelWithId as ProtectModelWithId, Sensor, Viewer
|
19
19
|
|
20
20
|
_LOGGER: Incomplete
|
21
21
|
_KEY_LIGHT_MOTION: str
|
@@ -12,8 +12,8 @@ from homeassistant.const import EntityCategory as EntityCategory, LIGHT_LUX as L
|
|
12
12
|
from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
|
13
13
|
from homeassistant.helpers.dispatcher import async_dispatcher_connect as async_dispatcher_connect
|
14
14
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
|
15
|
-
from pyunifiprotect.data import Camera, NVR, ProtectAdoptableDeviceModel as ProtectAdoptableDeviceModel, ProtectDeviceModel as ProtectDeviceModel, ProtectModelWithId as ProtectModelWithId, Sensor
|
16
15
|
from typing import Any
|
16
|
+
from uiprotect.data import Camera, NVR, ProtectAdoptableDeviceModel as ProtectAdoptableDeviceModel, ProtectDeviceModel as ProtectDeviceModel, ProtectModelWithId as ProtectModelWithId, Sensor
|
17
17
|
|
18
18
|
_LOGGER: Incomplete
|
19
19
|
OBJECT_TYPE_NONE: str
|
@@ -8,9 +8,9 @@ from homeassistant.core import HomeAssistant as HomeAssistant, ServiceCall as Se
|
|
8
8
|
from homeassistant.exceptions import HomeAssistantError as HomeAssistantError, ServiceValidationError as ServiceValidationError
|
9
9
|
from homeassistant.helpers.service import async_extract_referenced_entity_ids as async_extract_referenced_entity_ids
|
10
10
|
from homeassistant.util.read_only_dict import ReadOnlyDict as ReadOnlyDict
|
11
|
-
from pyunifiprotect.api import ProtectApiClient as ProtectApiClient
|
12
|
-
from pyunifiprotect.data import Camera
|
13
11
|
from typing import Any
|
12
|
+
from uiprotect.api import ProtectApiClient as ProtectApiClient
|
13
|
+
from uiprotect.data import Camera
|
14
14
|
|
15
15
|
SERVICE_ADD_DOORBELL_TEXT: str
|
16
16
|
SERVICE_REMOVE_DOORBELL_TEXT: str
|
@@ -11,8 +11,8 @@ from homeassistant.core import HomeAssistant as HomeAssistant, callback as callb
|
|
11
11
|
from homeassistant.helpers.dispatcher import async_dispatcher_connect as async_dispatcher_connect
|
12
12
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
|
13
13
|
from homeassistant.helpers.restore_state import RestoreEntity as RestoreEntity
|
14
|
-
from pyunifiprotect.data import Camera, NVR as NVR, ProtectAdoptableDeviceModel as ProtectAdoptableDeviceModel, ProtectModelWithId as ProtectModelWithId
|
15
14
|
from typing import Any
|
15
|
+
from uiprotect.data import Camera, NVR as NVR, ProtectAdoptableDeviceModel as ProtectAdoptableDeviceModel, ProtectModelWithId as ProtectModelWithId
|
16
16
|
|
17
17
|
_LOGGER: Incomplete
|
18
18
|
ATTR_PREV_MIC: str
|
@@ -10,8 +10,8 @@ from homeassistant.const import EntityCategory as EntityCategory
|
|
10
10
|
from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
|
11
11
|
from homeassistant.helpers.dispatcher import async_dispatcher_connect as async_dispatcher_connect
|
12
12
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
|
13
|
-
from pyunifiprotect.data import Camera as Camera, ProtectAdoptableDeviceModel as ProtectAdoptableDeviceModel, ProtectModelWithId as ProtectModelWithId
|
14
13
|
from typing import Any
|
14
|
+
from uiprotect.data import Camera as Camera, ProtectAdoptableDeviceModel as ProtectAdoptableDeviceModel, ProtectModelWithId as ProtectModelWithId
|
15
15
|
|
16
16
|
@dataclass(frozen=True, kw_only=True)
|
17
17
|
class ProtectTextEntityDescription(ProtectSetableKeysMixin[T], TextEntityDescription):
|
@@ -6,9 +6,9 @@ from homeassistant.const import CONF_HOST as CONF_HOST, CONF_PASSWORD as CONF_PA
|
|
6
6
|
from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
|
7
7
|
from homeassistant.helpers.aiohttp_client import async_create_clientsession as async_create_clientsession
|
8
8
|
from homeassistant.helpers.storage import STORAGE_DIR as STORAGE_DIR
|
9
|
-
from pyunifiprotect import ProtectApiClient
|
10
|
-
from pyunifiprotect.data import Bootstrap as Bootstrap, CameraChannel as CameraChannel, Light as Light, ProtectAdoptableDeviceModel as ProtectAdoptableDeviceModel
|
11
9
|
from typing import Any
|
10
|
+
from uiprotect import ProtectApiClient
|
11
|
+
from uiprotect.data import Bootstrap as Bootstrap, CameraChannel as CameraChannel, Light as Light, ProtectAdoptableDeviceModel as ProtectAdoptableDeviceModel
|
12
12
|
|
13
13
|
_SENTINEL: Incomplete
|
14
14
|
|
@@ -5,8 +5,8 @@ from aiohttp import web
|
|
5
5
|
from homeassistant.components.http import HomeAssistantView as HomeAssistantView
|
6
6
|
from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
|
7
7
|
from http import HTTPStatus
|
8
|
-
from pyunifiprotect.data import Camera, Event as Event
|
9
8
|
from typing import Any
|
9
|
+
from uiprotect.data import Camera, Event as Event
|
10
10
|
|
11
11
|
_LOGGER: Incomplete
|
12
12
|
|
@@ -74,11 +74,12 @@ class IntentTool(Tool):
|
|
74
74
|
description: Incomplete
|
75
75
|
extra_slots: Incomplete
|
76
76
|
parameters: Incomplete
|
77
|
-
def __init__(self, intent_handler: intent.IntentHandler) -> None: ...
|
77
|
+
def __init__(self, name: str, intent_handler: intent.IntentHandler) -> None: ...
|
78
78
|
async def async_call(self, hass: HomeAssistant, tool_input: ToolInput, llm_context: LLMContext) -> JsonObjectType: ...
|
79
79
|
|
80
80
|
class AssistAPI(API):
|
81
81
|
IGNORE_INTENTS: Incomplete
|
82
|
+
cached_slugify: Incomplete
|
82
83
|
def __init__(self, hass: HomeAssistant) -> None: ...
|
83
84
|
async def async_get_api_instance(self, llm_context: LLMContext) -> APIInstance: ...
|
84
85
|
def _async_get_api_prompt(self, llm_context: LLMContext, exposed_entities: dict | None) -> str: ...
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: homeassistant-stubs
|
3
|
-
Version: 2024.6.
|
3
|
+
Version: 2024.6.3
|
4
4
|
Summary: PEP 484 typing stubs for Home Assistant Core
|
5
5
|
Home-page: https://github.com/KapJI/homeassistant-stubs
|
6
6
|
License: MIT
|
@@ -16,7 +16,7 @@ Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.12
|
17
17
|
Classifier: Topic :: Software Development
|
18
18
|
Classifier: Typing :: Typed
|
19
|
-
Requires-Dist: homeassistant (==2024.6.
|
19
|
+
Requires-Dist: homeassistant (==2024.6.3)
|
20
20
|
Project-URL: Bug Tracker, https://github.com/KapJI/homeassistant-stubs/issues
|
21
21
|
Project-URL: Repository, https://github.com/KapJI/homeassistant-stubs
|
22
22
|
Project-URL: Release Notes, https://github.com/KapJI/homeassistant-stubs/releases
|
@@ -827,10 +827,6 @@ homeassistant-stubs/components/efergy/__init__.pyi,sha256=VLLdGf626WUOW89PwzJJKm
|
|
827
827
|
homeassistant-stubs/components/efergy/config_flow.pyi,sha256=2XxomEz_tX_Iz3Df4NyyD3F6XcZr5rvfZFIO8QKzN_A,766
|
828
828
|
homeassistant-stubs/components/efergy/const.pyi,sha256=BcxPoGgibA8PTYK8tKhK-bxRu-RexHDG3BxPXbKxSYY,177
|
829
829
|
homeassistant-stubs/components/efergy/sensor.pyi,sha256=AeJxvYuJhu4zs_dQ8PE42JT2CYUK0v8jDdLaru1KIqo,1550
|
830
|
-
homeassistant-stubs/components/electrasmart/__init__.pyi,sha256=xEQZ37Md5Ad-CVM83GzeYuAiO6TURsLLk8biL6xSIiA,729
|
831
|
-
homeassistant-stubs/components/electrasmart/climate.pyi,sha256=RDYOEd1GLs34ibpA5PNL4GzN5PkFNWM0rAtZkLW47xg,3317
|
832
|
-
homeassistant-stubs/components/electrasmart/config_flow.pyi,sha256=eD5f8S1GEvW_x0z5o5K0lsJFKmfZVW5G-xh2aolrlTM,1441
|
833
|
-
homeassistant-stubs/components/electrasmart/const.pyi,sha256=XdqHbZAjMTDTAr3l1nuD70kEKXKbHLow0J5imEBNV4g,201
|
834
830
|
homeassistant-stubs/components/electric_kiwi/__init__.pyi,sha256=KqcblPEYSNCs_t9zTUHu_qzI0nBcg5cy8opy_C6XOxE,930
|
835
831
|
homeassistant-stubs/components/electric_kiwi/api.pyi,sha256=HaXgcRvAIpZplXCwQjhTPKASQR2cnG612nRTY0NUry4,508
|
836
832
|
homeassistant-stubs/components/electric_kiwi/application_credentials.pyi,sha256=mlbJhHlpo-3wVCJd_Uzj43WzNfey6hQVcYTmlcLZDm4,827
|
@@ -1151,7 +1147,7 @@ homeassistant-stubs/components/group/media_player.pyi,sha256=JCCIRb_-dG0bP0UPTMg
|
|
1151
1147
|
homeassistant-stubs/components/group/notify.pyi,sha256=DXKOz050ed8J9L2JaX6Be1WsiOZVO1il4LwlPzhMIMY,1066
|
1152
1148
|
homeassistant-stubs/components/group/registry.pyi,sha256=64-N2DmZ45uk0CIvVGPR5rKEudr7SxRdybhj7d651p8,1345
|
1153
1149
|
homeassistant-stubs/components/group/reproduce_state.pyi,sha256=hsgYYKLLNWukmVn8EXhIMtzJwAvNx8Y-pm5iDmKiRQw,469
|
1154
|
-
homeassistant-stubs/components/group/sensor.pyi,sha256=
|
1150
|
+
homeassistant-stubs/components/group/sensor.pyi,sha256=BmGDs4tgKj8mTHD87JG7KWViApE_yBSoTbKsE-KtNf4,5605
|
1155
1151
|
homeassistant-stubs/components/group/switch.pyi,sha256=2aQZ0lDYwtK1AnoQ7iFyJJrCz4w7xM-6-65Gt3PKADU,1974
|
1156
1152
|
homeassistant-stubs/components/group/util.pyi,sha256=AEKSHTZGTp2mH4iAp21QyAt_a2vpqoIYOVNPqoLttrE,735
|
1157
1153
|
homeassistant-stubs/components/guardian/__init__.pyi,sha256=kPKlq8vEKeL1vxj1rLtVtna0ZEo5kfOzA_twzDbNi9c,4280
|
@@ -2291,7 +2287,7 @@ homeassistant-stubs/components/recorder/purge.pyi,sha256=uXU4eu0ZuMpmgkDzT8NM_r9
|
|
2291
2287
|
homeassistant-stubs/components/recorder/queries.pyi,sha256=yRoXtNJiBJHx1yZtTW9JPUzK-ba-NmVQ8PqZ6fLGOzA,8616
|
2292
2288
|
homeassistant-stubs/components/recorder/repack.pyi,sha256=uT-A8NGsSHYz1fQo2pVBFVRzp0z0GhMiwN5Ydl4bUN4,247
|
2293
2289
|
homeassistant-stubs/components/recorder/services.pyi,sha256=VULd5jf1yak05XG2PL4xrwHp5any94qRVhxdc14hdHI,1429
|
2294
|
-
homeassistant-stubs/components/recorder/statistics.pyi,sha256=
|
2290
|
+
homeassistant-stubs/components/recorder/statistics.pyi,sha256=JyxzYRh5TRUPFDKURYdsc5ALQqn7Q0oQKhAv8kXexpE,16897
|
2295
2291
|
homeassistant-stubs/components/recorder/system_health/__init__.pyi,sha256=q2LlaYg8VEBO51qUY9LwPPnmqFUfhn7DsEkRakEnOGg,763
|
2296
2292
|
homeassistant-stubs/components/recorder/system_health/mysql.pyi,sha256=c_z5E_CiWWIki-QYEos1FMlZUIa2T0xOuHLWbLgpEt4,132
|
2297
2293
|
homeassistant-stubs/components/recorder/system_health/postgresql.pyi,sha256=c_z5E_CiWWIki-QYEos1FMlZUIa2T0xOuHLWbLgpEt4,132
|
@@ -2513,7 +2509,7 @@ homeassistant-stubs/components/shelly/button.pyi,sha256=6pwwSusXf7BuAwyoG_4tq-aY
|
|
2513
2509
|
homeassistant-stubs/components/shelly/climate.pyi,sha256=neBcFFpEytxCV4tMyGfxv11o3TsgRlbw7UErcfywl0k,5473
|
2514
2510
|
homeassistant-stubs/components/shelly/config_flow.pyi,sha256=Lcf2KunZYOUzfVq9Z_JMOja7dBiWDB5y839du_Y3Eys,3451
|
2515
2511
|
homeassistant-stubs/components/shelly/const.pyi,sha256=MyuGfruFoFKf2NBHfeW0-6937H3Ds4ZbXOGFSDwBYFo,2304
|
2516
|
-
homeassistant-stubs/components/shelly/coordinator.pyi,sha256=
|
2512
|
+
homeassistant-stubs/components/shelly/coordinator.pyi,sha256=dqHNEnyRfSN_As5nWBfAuhcGrT09gwddy5BNbjWIGI8,7076
|
2517
2513
|
homeassistant-stubs/components/shelly/cover.pyi,sha256=DuVDbP-YxarM6YUvf0y1r4ij3sSbPZpAMyS63ExvK0I,2758
|
2518
2514
|
homeassistant-stubs/components/shelly/device_trigger.pyi,sha256=pXIeDnIMtGs_ZkJV8fvJG8kYkaTrZ6RW7YnCjKWxZNE,1988
|
2519
2515
|
homeassistant-stubs/components/shelly/diagnostics.pyi,sha256=f8nZC061W2AfmWFvF2nU5sAo3RBVQonWxZEF1Bk4aIk,677
|
@@ -2709,7 +2705,7 @@ homeassistant-stubs/components/synology_dsm/button.pyi,sha256=38xJErknhrPolC21G3
|
|
2709
2705
|
homeassistant-stubs/components/synology_dsm/camera.pyi,sha256=PFf23IeY1fi4vG0hdGh7ss9nfladCp6AStJ-Q9HRDcI,2822
|
2710
2706
|
homeassistant-stubs/components/synology_dsm/common.pyi,sha256=JgIQnolsxFIwPE_LDjwn7B9cMiLMn_o1oEuHfnnxqcc,2392
|
2711
2707
|
homeassistant-stubs/components/synology_dsm/config_flow.pyi,sha256=aPhyH_ZsfQHkVxg8Rx7vFQ2hFwB4bk75Tw99F13J4ww,3821
|
2712
|
-
homeassistant-stubs/components/synology_dsm/const.pyi,sha256=
|
2708
|
+
homeassistant-stubs/components/synology_dsm/const.pyi,sha256=n1xclh4YaxjUaAwQf8gFqZ_jKqArB-QYds43TOixiy4,752
|
2713
2709
|
homeassistant-stubs/components/synology_dsm/coordinator.pyi,sha256=Q3riCV-x7owuLq23CLyqwg6IXcED6RByASHQFp9tYn8,2272
|
2714
2710
|
homeassistant-stubs/components/synology_dsm/diagnostics.pyi,sha256=_P_S524OdyHL7vbtrYbSH5klBTkRSBAI6gyqKfwDYGg,633
|
2715
2711
|
homeassistant-stubs/components/synology_dsm/entity.pyi,sha256=7kp5WMYtqQHdB0pfVebGNNM6suOvYVUdAoYlLpi3XbE,1896
|
@@ -2957,31 +2953,31 @@ homeassistant-stubs/components/unifi/sensor.pyi,sha256=ITMN2tjTNU-FALJgq5Ft0VflU
|
|
2957
2953
|
homeassistant-stubs/components/unifi/services.pyi,sha256=qV7XtncZ1jpgwothB8P9NP57rHA93JwN9LZL8EGEWTA,774
|
2958
2954
|
homeassistant-stubs/components/unifi/switch.pyi,sha256=dqJduHIoJkj-QCJyDCVkZMenFbf8cJo_VrAaKcNhdCM,4222
|
2959
2955
|
homeassistant-stubs/components/unifi/update.pyi,sha256=LjvJQrVAjxtw9gcZmZkoEtOZXN5zcXW9drulTVhRLeM,2594
|
2960
|
-
homeassistant-stubs/components/unifiprotect/__init__.pyi,sha256=
|
2961
|
-
homeassistant-stubs/components/unifiprotect/binary_sensor.pyi,sha256=
|
2962
|
-
homeassistant-stubs/components/unifiprotect/button.pyi,sha256=
|
2963
|
-
homeassistant-stubs/components/unifiprotect/camera.pyi,sha256=
|
2964
|
-
homeassistant-stubs/components/unifiprotect/config_flow.pyi,sha256=
|
2956
|
+
homeassistant-stubs/components/unifiprotect/__init__.pyi,sha256=L28o2G97Ml-dF1TaElwXMUOvNAGHoh8FcXx0Q5XWUjI,2341
|
2957
|
+
homeassistant-stubs/components/unifiprotect/binary_sensor.pyi,sha256=g8K1ZgpqpMbMBqoz7sX5vVsiVPMg3MjSdWhOHo3SPRk,4357
|
2958
|
+
homeassistant-stubs/components/unifiprotect/button.pyi,sha256=IKHUvyqNLXYFFZnExKhkNSv8Jh95rDH2nnkMT-iLikY,2637
|
2959
|
+
homeassistant-stubs/components/unifiprotect/camera.pyi,sha256=ax8EL9tv4MwDYSE0-eYFutIKQSZ9R2pvWzXsKuGHyGk,3009
|
2960
|
+
homeassistant-stubs/components/unifiprotect/config_flow.pyi,sha256=2YW3jAS2mXEDLV8EzIhlV938epEJnKDa3yG05X0u1ls,3681
|
2965
2961
|
homeassistant-stubs/components/unifiprotect/const.pyi,sha256=v-DBMoOLf7Pw7VyaBzc9u1nDHMLOr7mJ83oq1RZKLqE,839
|
2966
|
-
homeassistant-stubs/components/unifiprotect/data.pyi,sha256=
|
2962
|
+
homeassistant-stubs/components/unifiprotect/data.pyi,sha256=lOiopSYTbnkM75yfmxHONBwG5eBuoX0Y1AWGqdGUffI,3184
|
2967
2963
|
homeassistant-stubs/components/unifiprotect/diagnostics.pyi,sha256=X7SoEeWaUotXv5WQaWS3ZqTmOhiSE_kV2xlmkEVa238,351
|
2968
2964
|
homeassistant-stubs/components/unifiprotect/discovery.pyi,sha256=3enwOx02hOmMKMbP6q1lHNzal1OaEwwBi25j304gfyU,719
|
2969
|
-
homeassistant-stubs/components/unifiprotect/entity.pyi,sha256=
|
2970
|
-
homeassistant-stubs/components/unifiprotect/light.pyi,sha256=
|
2971
|
-
homeassistant-stubs/components/unifiprotect/lock.pyi,sha256=
|
2972
|
-
homeassistant-stubs/components/unifiprotect/media_player.pyi,sha256=
|
2973
|
-
homeassistant-stubs/components/unifiprotect/media_source.pyi,sha256=
|
2974
|
-
homeassistant-stubs/components/unifiprotect/migrate.pyi,sha256=
|
2975
|
-
homeassistant-stubs/components/unifiprotect/models.pyi,sha256=
|
2976
|
-
homeassistant-stubs/components/unifiprotect/number.pyi,sha256=
|
2977
|
-
homeassistant-stubs/components/unifiprotect/repairs.pyi,sha256=
|
2978
|
-
homeassistant-stubs/components/unifiprotect/select.pyi,sha256=
|
2979
|
-
homeassistant-stubs/components/unifiprotect/sensor.pyi,sha256=
|
2980
|
-
homeassistant-stubs/components/unifiprotect/services.pyi,sha256=
|
2981
|
-
homeassistant-stubs/components/unifiprotect/switch.pyi,sha256=
|
2982
|
-
homeassistant-stubs/components/unifiprotect/text.pyi,sha256=
|
2983
|
-
homeassistant-stubs/components/unifiprotect/utils.pyi,sha256=
|
2984
|
-
homeassistant-stubs/components/unifiprotect/views.pyi,sha256=
|
2965
|
+
homeassistant-stubs/components/unifiprotect/entity.pyi,sha256=Gey4pRc67vlN8iqmjcpyztd417OXVYXndNgW1YVDwkk,3513
|
2966
|
+
homeassistant-stubs/components/unifiprotect/light.pyi,sha256=3Wtsxoh2r7LuXvPJbe62zzU0-a7X_ECIb3ECZbEL9vc,1608
|
2967
|
+
homeassistant-stubs/components/unifiprotect/lock.pyi,sha256=dRD01wVK5i9u067jUIb_AlqfcU90SuATRMSEnSdXknA,1601
|
2968
|
+
homeassistant-stubs/components/unifiprotect/media_player.pyi,sha256=mBxQ8HHmPCHoEmhd49Ynb7VenEnMIx_qzQqW_iyNNLM,2350
|
2969
|
+
homeassistant-stubs/components/unifiprotect/media_source.pyi,sha256=LAB42RyHISWUUZXZlkuYfXp6BXeWS2U1HgM_CGP1Xio,4164
|
2970
|
+
homeassistant-stubs/components/unifiprotect/migrate.pyi,sha256=pOO3PDWWt38Ta-nfnTVPGrSXF0w_5XvevUBPKYfpDYo,1335
|
2971
|
+
homeassistant-stubs/components/unifiprotect/models.pyi,sha256=RwsRQpbca6bt1gFo92ytm24hOKl1Fpv4LkFEAaSc09o,2715
|
2972
|
+
homeassistant-stubs/components/unifiprotect/number.pyi,sha256=HlZxbUXuhPdDGnMPftlQqDaup58fgu4uiQbN8iBgU8E,3226
|
2973
|
+
homeassistant-stubs/components/unifiprotect/repairs.pyi,sha256=xgPTyDqHY3PU7vh101r5JSJa2RCBvBvx9Z9lklH4Nfo,2354
|
2974
|
+
homeassistant-stubs/components/unifiprotect/select.pyi,sha256=tZ5aO2bC1Lp19rJ5tYw5kDyrameYPJM7jOAHZ40mK9k,4349
|
2975
|
+
homeassistant-stubs/components/unifiprotect/sensor.pyi,sha256=eqJeAX2IaJ8iFKBosfxFtFuF-5jbP_XZig1S-qYAopE,5305
|
2976
|
+
homeassistant-stubs/components/unifiprotect/services.pyi,sha256=3xCMxANQIrciwdtgygg7IvOUSu3Cm64oHEWmkvZx9go,2382
|
2977
|
+
homeassistant-stubs/components/unifiprotect/switch.pyi,sha256=4Vf2JDmRuxCcLKf848dJI_LSDj9B2Ug7Oyg92czCCws,4037
|
2978
|
+
homeassistant-stubs/components/unifiprotect/text.pyi,sha256=faqO6XpXXP-kskFTiMz7n8FmDMsBkLX5S034CKEj8is,2416
|
2979
|
+
homeassistant-stubs/components/unifiprotect/utils.pyi,sha256=2SAriyTRzsBt3QimdPH-z20Rhb2xsvZcH1nvYJ1KQLc,1801
|
2980
|
+
homeassistant-stubs/components/unifiprotect/views.pyi,sha256=9l3k_0OQ0o41ypI6pKMMElhsCPXZMvTAoi8i-3dthmE,1557
|
2985
2981
|
homeassistant-stubs/components/upcloud/__init__.pyi,sha256=_WvpZfMKoup54mBvX7ComunqkZkj-74IFao6Hmtgfn8,2535
|
2986
2982
|
homeassistant-stubs/components/upcloud/binary_sensor.pyi,sha256=YXI5E2Mpc-nzRRwE1e3F9XMkG4XIJnE1Zwa6kzqvAl0,785
|
2987
2983
|
homeassistant-stubs/components/upcloud/config_flow.pyi,sha256=stvAy2yi2qSvWTKo6OdjwD1KFCa2482-_mg4o88CBxA,1207
|
@@ -3312,7 +3308,7 @@ homeassistant-stubs/helpers/intent.pyi,sha256=NkA6as-zlSxQMcC0Izv7BiEFGxN9rmSRm0
|
|
3312
3308
|
homeassistant-stubs/helpers/issue_registry.pyi,sha256=-nFO9SpW-rNL8DusXkjktFMFpN2PwdQpGPBQM36ecDo,4115
|
3313
3309
|
homeassistant-stubs/helpers/json.pyi,sha256=tCdDyP3NYTF3Jb6cASWYnepzie6YLlD0ikMPW7wevKQ,1452
|
3314
3310
|
homeassistant-stubs/helpers/label_registry.pyi,sha256=fDg71PDb5lXKPPZZ0c85retuA53X_YWvkdNlHW1tVI8,2846
|
3315
|
-
homeassistant-stubs/helpers/llm.pyi,sha256=
|
3311
|
+
homeassistant-stubs/helpers/llm.pyi,sha256=hVLqgKPJ80B0hyebRiGeLNqrXn2js0Wl0PwpqlQwfqs,3862
|
3316
3312
|
homeassistant-stubs/helpers/location.pyi,sha256=ynZlBZv3LuyphX4B28y2n2V4IHtJ6ETkUnqOlSYM1FM,655
|
3317
3313
|
homeassistant-stubs/helpers/network.pyi,sha256=34Qq5-Y8aevzqp_21b7L2Woqn-8dOunSTm7uML0_ty0,1773
|
3318
3314
|
homeassistant-stubs/helpers/normalized_name_base_registry.pyi,sha256=LoqQgtUt36e2EvYZisNHOydbZWGIRRSsuGNA01agMVg,704
|
@@ -3398,7 +3394,7 @@ homeassistant-stubs/util/yaml/dumper.pyi,sha256=uQjW0KuME-gXVWgYJLNLoRDwDzVhhhgg
|
|
3398
3394
|
homeassistant-stubs/util/yaml/input.pyi,sha256=wuxpKYTXZL4MujFhqjHnRLv4VPYY6QPYd-Zji-Lz9Mo,383
|
3399
3395
|
homeassistant-stubs/util/yaml/loader.pyi,sha256=RTT2312P0TB9bA-rj3xdQK_J6sqVQE4LBJozgLH3oao,4621
|
3400
3396
|
homeassistant-stubs/util/yaml/objects.pyi,sha256=YUlr0nf9ugzJT9J2YHaGV2fXu5opuyNvvHPqNW46m5I,707
|
3401
|
-
homeassistant_stubs-2024.6.
|
3402
|
-
homeassistant_stubs-2024.6.
|
3403
|
-
homeassistant_stubs-2024.6.
|
3404
|
-
homeassistant_stubs-2024.6.
|
3397
|
+
homeassistant_stubs-2024.6.3.dist-info/WHEEL,sha256=vVCvjcmxuUltf8cYhJ0sJMRDLr1XsPuxEId8YDzbyCY,88
|
3398
|
+
homeassistant_stubs-2024.6.3.dist-info/LICENSE,sha256=_kHFjg-MAmJ-lXc7HiEjUzD3vZutVYKUVZZpAWcIuqo,1075
|
3399
|
+
homeassistant_stubs-2024.6.3.dist-info/METADATA,sha256=zMHTUyRRZ-1SUPBH9z1xcENqUuOxD0uPlV12JDQvp7U,3011
|
3400
|
+
homeassistant_stubs-2024.6.3.dist-info/RECORD,,
|
@@ -1,12 +0,0 @@
|
|
1
|
-
from .const import CONF_IMEI as CONF_IMEI, DOMAIN as DOMAIN
|
2
|
-
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
3
|
-
from homeassistant.const import CONF_TOKEN as CONF_TOKEN, Platform as Platform
|
4
|
-
from homeassistant.core import HomeAssistant as HomeAssistant
|
5
|
-
from homeassistant.exceptions import ConfigEntryNotReady as ConfigEntryNotReady
|
6
|
-
from homeassistant.helpers.aiohttp_client import async_get_clientsession as async_get_clientsession
|
7
|
-
|
8
|
-
PLATFORMS: list[Platform]
|
9
|
-
|
10
|
-
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: ...
|
11
|
-
async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: ...
|
12
|
-
async def update_listener(hass: HomeAssistant, config_entry: ConfigEntry) -> None: ...
|
@@ -1,64 +0,0 @@
|
|
1
|
-
from .const import API_DELAY as API_DELAY, CONSECUTIVE_FAILURE_THRESHOLD as CONSECUTIVE_FAILURE_THRESHOLD, DOMAIN as DOMAIN, PRESET_NONE as PRESET_NONE, PRESET_SHABAT as PRESET_SHABAT, SCAN_INTERVAL_SEC as SCAN_INTERVAL_SEC, UNAVAILABLE_THRESH_SEC as UNAVAILABLE_THRESH_SEC
|
2
|
-
from _typeshed import Incomplete
|
3
|
-
from electrasmart.api import ElectraAPI as ElectraAPI
|
4
|
-
from electrasmart.device import ElectraAirConditioner as ElectraAirConditioner
|
5
|
-
from electrasmart.device.const import MAX_TEMP, MIN_TEMP
|
6
|
-
from homeassistant.components.climate import ClimateEntity as ClimateEntity, ClimateEntityFeature as ClimateEntityFeature, FAN_AUTO as FAN_AUTO, FAN_HIGH as FAN_HIGH, FAN_LOW as FAN_LOW, FAN_MEDIUM as FAN_MEDIUM, HVACMode as HVACMode, SWING_BOTH as SWING_BOTH, SWING_HORIZONTAL as SWING_HORIZONTAL, SWING_OFF as SWING_OFF, SWING_VERTICAL as SWING_VERTICAL
|
7
|
-
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
8
|
-
from homeassistant.const import ATTR_TEMPERATURE as ATTR_TEMPERATURE, UnitOfTemperature as UnitOfTemperature
|
9
|
-
from homeassistant.core import HomeAssistant as HomeAssistant
|
10
|
-
from homeassistant.exceptions import HomeAssistantError as HomeAssistantError
|
11
|
-
from homeassistant.helpers.device_registry import DeviceInfo as DeviceInfo
|
12
|
-
from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
|
13
|
-
from typing import Any
|
14
|
-
|
15
|
-
FAN_ELECTRA_TO_HASS: Incomplete
|
16
|
-
FAN_HASS_TO_ELECTRA: Incomplete
|
17
|
-
HVAC_MODE_ELECTRA_TO_HASS: Incomplete
|
18
|
-
HVAC_MODE_HASS_TO_ELECTRA: Incomplete
|
19
|
-
ELECTRA_FAN_MODES: Incomplete
|
20
|
-
ELECTRA_MODES: Incomplete
|
21
|
-
_LOGGER: Incomplete
|
22
|
-
SCAN_INTERVAL: Incomplete
|
23
|
-
PARALLEL_UPDATES: int
|
24
|
-
|
25
|
-
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...
|
26
|
-
|
27
|
-
class ElectraClimateEntity(ClimateEntity):
|
28
|
-
_attr_fan_modes = ELECTRA_FAN_MODES
|
29
|
-
_attr_target_temperature_step: int
|
30
|
-
_attr_max_temp = MAX_TEMP
|
31
|
-
_attr_min_temp = MIN_TEMP
|
32
|
-
_attr_temperature_unit: Incomplete
|
33
|
-
_attr_hvac_modes = ELECTRA_MODES
|
34
|
-
_attr_has_entity_name: bool
|
35
|
-
_attr_name: Incomplete
|
36
|
-
_enable_turn_on_off_backwards_compatibility: bool
|
37
|
-
_api: Incomplete
|
38
|
-
_electra_ac_device: Incomplete
|
39
|
-
_attr_unique_id: Incomplete
|
40
|
-
_attr_supported_features: Incomplete
|
41
|
-
_attr_swing_modes: Incomplete
|
42
|
-
_attr_preset_modes: Incomplete
|
43
|
-
_attr_device_info: Incomplete
|
44
|
-
_last_state_update: int
|
45
|
-
_consecutive_failures: int
|
46
|
-
_skip_update: bool
|
47
|
-
_was_available: bool
|
48
|
-
def __init__(self, device: ElectraAirConditioner, api: ElectraAPI) -> None: ...
|
49
|
-
@property
|
50
|
-
def available(self) -> bool: ...
|
51
|
-
async def async_update(self) -> None: ...
|
52
|
-
async def async_set_fan_mode(self, fan_mode: str) -> None: ...
|
53
|
-
async def async_set_hvac_mode(self, hvac_mode: HVACMode) -> None: ...
|
54
|
-
async def async_set_temperature(self, **kwargs: Any) -> None: ...
|
55
|
-
_attr_fan_mode: Incomplete
|
56
|
-
_attr_current_temperature: Incomplete
|
57
|
-
_attr_target_temperature: Incomplete
|
58
|
-
_attr_hvac_mode: Incomplete
|
59
|
-
_attr_swing_mode: Incomplete
|
60
|
-
_attr_preset_mode: Incomplete
|
61
|
-
def _update_device_attrs(self) -> None: ...
|
62
|
-
async def async_set_swing_mode(self, swing_mode: str) -> None: ...
|
63
|
-
async def async_set_preset_mode(self, preset_mode: str) -> None: ...
|
64
|
-
async def _async_operate_electra_ac(self) -> None: ...
|
@@ -1,24 +0,0 @@
|
|
1
|
-
from .const import CONF_IMEI as CONF_IMEI, CONF_OTP as CONF_OTP, CONF_PHONE_NUMBER as CONF_PHONE_NUMBER, DOMAIN as DOMAIN
|
2
|
-
from _typeshed import Incomplete
|
3
|
-
from homeassistant.config_entries import ConfigFlow as ConfigFlow, ConfigFlowResult as ConfigFlowResult
|
4
|
-
from homeassistant.const import CONF_TOKEN as CONF_TOKEN
|
5
|
-
from homeassistant.helpers.aiohttp_client import async_get_clientsession as async_get_clientsession
|
6
|
-
from typing import Any
|
7
|
-
|
8
|
-
_LOGGER: Incomplete
|
9
|
-
|
10
|
-
class ElectraSmartConfigFlow(ConfigFlow, domain=DOMAIN):
|
11
|
-
VERSION: int
|
12
|
-
_phone_number: Incomplete
|
13
|
-
_description_placeholders: Incomplete
|
14
|
-
_otp: Incomplete
|
15
|
-
_imei: Incomplete
|
16
|
-
_token: Incomplete
|
17
|
-
_api: Incomplete
|
18
|
-
def __init__(self) -> None: ...
|
19
|
-
async def async_step_user(self, user_input: dict[str, Any] | None = None) -> ConfigFlowResult: ...
|
20
|
-
def _show_setup_form(self, user_input: dict[str, str] | None = None, errors: dict[str, str] | None = None, step_id: str = 'user') -> ConfigFlowResult: ...
|
21
|
-
async def _validate_phone_number(self, user_input: dict[str, str]) -> ConfigFlowResult: ...
|
22
|
-
async def _validate_one_time_password(self, user_input: dict[str, str]) -> ConfigFlowResult: ...
|
23
|
-
async def async_step_one_time_password(self, user_input: dict[str, Any] | None = None, errors: dict[str, str] | None = None) -> ConfigFlowResult: ...
|
24
|
-
async def _show_otp_form(self, errors: dict[str, str] | None = None) -> ConfigFlowResult: ...
|
File without changes
|
File without changes
|