homeassistant-stubs 2024.8.1__py3-none-any.whl → 2024.8.2__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/ecovacs/controller.pyi +4 -1
- homeassistant-stubs/components/glances/sensor.pyi +2 -0
- homeassistant-stubs/components/knx/climate.pyi +2 -1
- homeassistant-stubs/components/pi_hole/update.pyi +2 -1
- homeassistant-stubs/components/recorder/migration.pyi +9 -1
- homeassistant-stubs/components/wake_on_lan/button.pyi +0 -1
- {homeassistant_stubs-2024.8.1.dist-info → homeassistant_stubs-2024.8.2.dist-info}/METADATA +2 -2
- {homeassistant_stubs-2024.8.1.dist-info → homeassistant_stubs-2024.8.2.dist-info}/RECORD +10 -10
- {homeassistant_stubs-2024.8.1.dist-info → homeassistant_stubs-2024.8.2.dist-info}/LICENSE +0 -0
- {homeassistant_stubs-2024.8.1.dist-info → homeassistant_stubs-2024.8.2.dist-info}/WHEEL +0 -0
@@ -4,6 +4,7 @@ from _typeshed import Incomplete
|
|
4
4
|
from collections.abc import Mapping
|
5
5
|
from deebot_client.const import UndefinedType as UndefinedType
|
6
6
|
from deebot_client.device import Device
|
7
|
+
from deebot_client.mqtt_client import MqttClient
|
7
8
|
from homeassistant.const import CONF_COUNTRY as CONF_COUNTRY, CONF_PASSWORD as CONF_PASSWORD, CONF_USERNAME as CONF_USERNAME
|
8
9
|
from homeassistant.core import HomeAssistant as HomeAssistant
|
9
10
|
from homeassistant.exceptions import ConfigEntryError as ConfigEntryError, ConfigEntryNotReady as ConfigEntryNotReady
|
@@ -22,13 +23,15 @@ class EcovacsController:
|
|
22
23
|
_continent: Incomplete
|
23
24
|
_authenticator: Incomplete
|
24
25
|
_api_client: Incomplete
|
25
|
-
|
26
|
+
_mqtt_config_fn: Incomplete
|
27
|
+
_mqtt_client: Incomplete
|
26
28
|
_added_legacy_entities: Incomplete
|
27
29
|
def __init__(self, hass: HomeAssistant, config: Mapping[str, Any]) -> None: ...
|
28
30
|
async def initialize(self) -> None: ...
|
29
31
|
async def teardown(self) -> None: ...
|
30
32
|
def add_legacy_entity(self, device: VacBot, component: str) -> None: ...
|
31
33
|
def legacy_entity_is_added(self, device: VacBot, component: str) -> bool: ...
|
34
|
+
async def _get_mqtt_client(self) -> MqttClient: ...
|
32
35
|
@property
|
33
36
|
def devices(self) -> list[Device]: ...
|
34
37
|
@property
|
@@ -21,6 +21,7 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: GlancesConfigEntr
|
|
21
21
|
class GlancesSensor(CoordinatorEntity[GlancesDataUpdateCoordinator], SensorEntity):
|
22
22
|
entity_description: GlancesSensorEntityDescription
|
23
23
|
_attr_has_entity_name: bool
|
24
|
+
_data_valid: bool
|
24
25
|
_sensor_label: Incomplete
|
25
26
|
_attr_translation_placeholders: Incomplete
|
26
27
|
_attr_device_info: Incomplete
|
@@ -31,3 +32,4 @@ class GlancesSensor(CoordinatorEntity[GlancesDataUpdateCoordinator], SensorEntit
|
|
31
32
|
def _handle_coordinator_update(self) -> None: ...
|
32
33
|
_attr_native_value: Incomplete
|
33
34
|
def _update_native_value(self) -> None: ...
|
35
|
+
def _update_data_valid(self) -> None: ...
|
@@ -11,7 +11,7 @@ from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEnti
|
|
11
11
|
from homeassistant.helpers.typing import ConfigType as ConfigType
|
12
12
|
from typing import Any
|
13
13
|
from xknx import XKNX as XKNX
|
14
|
-
from xknx.devices import Climate as XknxClimate
|
14
|
+
from xknx.devices import Climate as XknxClimate, Device as XknxDevice
|
15
15
|
|
16
16
|
ATTR_COMMAND_VALUE: str
|
17
17
|
CONTROLLER_MODES_INV: Incomplete
|
@@ -58,3 +58,4 @@ class KNXClimate(KnxYamlEntity, ClimateEntity):
|
|
58
58
|
def extra_state_attributes(self) -> dict[str, Any] | None: ...
|
59
59
|
async def async_added_to_hass(self) -> None: ...
|
60
60
|
async def async_will_remove_from_hass(self) -> None: ...
|
61
|
+
def after_update_callback(self, _device: XknxDevice) -> None: ...
|
@@ -13,9 +13,10 @@ from homeassistant.helpers.update_coordinator import DataUpdateCoordinator as Da
|
|
13
13
|
class PiHoleUpdateEntityDescription(UpdateEntityDescription):
|
14
14
|
installed_version: Callable[[dict], str | None] = ...
|
15
15
|
latest_version: Callable[[dict], str | None] = ...
|
16
|
+
has_update: Callable[[dict], bool | None] = ...
|
16
17
|
release_base_url: str | None = ...
|
17
18
|
title: str | None = ...
|
18
|
-
def __init__(self, *, key, device_class=..., entity_category=..., entity_registry_enabled_default=..., entity_registry_visible_default=..., force_update=..., icon=..., has_entity_name=..., name=..., translation_key=..., translation_placeholders=..., unit_of_measurement=..., installed_version=..., latest_version=..., release_base_url=..., title=...) -> None: ...
|
19
|
+
def __init__(self, *, key, device_class=..., entity_category=..., entity_registry_enabled_default=..., entity_registry_visible_default=..., force_update=..., icon=..., has_entity_name=..., name=..., translation_key=..., translation_placeholders=..., unit_of_measurement=..., installed_version=..., latest_version=..., has_update=..., release_base_url=..., title=...) -> None: ...
|
19
20
|
|
20
21
|
UPDATE_ENTITY_TYPES: tuple[PiHoleUpdateEntityDescription, ...]
|
21
22
|
|
@@ -19,6 +19,7 @@ from homeassistant.util.ulid import ulid_at_time as ulid_at_time, ulid_to_bytes
|
|
19
19
|
from sqlalchemy.engine import CursorResult as CursorResult, Engine as Engine
|
20
20
|
from sqlalchemy.engine.interfaces import ReflectedForeignKeyConstraint as ReflectedForeignKeyConstraint
|
21
21
|
from sqlalchemy.orm.session import Session as Session
|
22
|
+
from sqlalchemy.schema import AddConstraint
|
22
23
|
from sqlalchemy.sql.lambdas import StatementLambdaElement as StatementLambdaElement
|
23
24
|
from typing import Any
|
24
25
|
|
@@ -67,7 +68,9 @@ def _add_columns(session_maker: Callable[[], Session], table_name: str, columns_
|
|
67
68
|
def _modify_columns(session_maker: Callable[[], Session], engine: Engine, table_name: str, columns_def: list[str]) -> None: ...
|
68
69
|
def _update_states_table_with_foreign_key_options(session_maker: Callable[[], Session], engine: Engine) -> None: ...
|
69
70
|
def _drop_foreign_key_constraints(session_maker: Callable[[], Session], engine: Engine, table: str, column: str) -> tuple[bool, list[tuple[str, str, ReflectedForeignKeyConstraint]]]: ...
|
70
|
-
def _restore_foreign_key_constraints(session_maker: Callable[[], Session], engine: Engine,
|
71
|
+
def _restore_foreign_key_constraints(session_maker: Callable[[], Session], engine: Engine, foreign_columns: list[tuple[str, str, str | None, str | None]]) -> None: ...
|
72
|
+
def _add_constraint(session_maker: Callable[[], Session], add_constraint: AddConstraint, table: str, column: str) -> None: ...
|
73
|
+
def _delete_foreign_key_violations(session_maker: Callable[[], Session], engine: Engine, table: str, column: str, foreign_table: str, foreign_column: str) -> None: ...
|
71
74
|
def _apply_update(instance: Recorder, hass: HomeAssistant, engine: Engine, session_maker: Callable[[], Session], new_version: int, old_version: int) -> None: ...
|
72
75
|
|
73
76
|
class _SchemaVersionMigrator(ABC, metaclass=abc.ABCMeta):
|
@@ -215,9 +218,14 @@ class _SchemaVersion42Migrator(_SchemaVersionMigrator, target_version=42):
|
|
215
218
|
class _SchemaVersion43Migrator(_SchemaVersionMigrator, target_version=43):
|
216
219
|
def _apply_update(self) -> None: ...
|
217
220
|
|
221
|
+
FOREIGN_COLUMNS: Incomplete
|
222
|
+
|
218
223
|
class _SchemaVersion44Migrator(_SchemaVersionMigrator, target_version=44):
|
219
224
|
def _apply_update(self) -> None: ...
|
220
225
|
|
226
|
+
class _SchemaVersion45Migrator(_SchemaVersionMigrator, target_version=45):
|
227
|
+
def _apply_update(self) -> None: ...
|
228
|
+
|
221
229
|
def _migrate_statistics_columns_to_timestamp_removing_duplicates(hass: HomeAssistant, instance: Recorder, session_maker: Callable[[], Session], engine: Engine) -> None: ...
|
222
230
|
def _correct_table_character_set_and_collation(table: str, session_maker: Callable[[], Session]) -> None: ...
|
223
231
|
def post_schema_migration(instance: Recorder, old_version: int, new_version: int) -> None: ...
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: homeassistant-stubs
|
3
|
-
Version: 2024.8.
|
3
|
+
Version: 2024.8.2
|
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.8.
|
19
|
+
Requires-Dist: homeassistant (==2024.8.2)
|
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
|
@@ -816,7 +816,7 @@ homeassistant-stubs/components/ecovacs/binary_sensor.pyi,sha256=BVeaPoaLjrcA7MwK
|
|
816
816
|
homeassistant-stubs/components/ecovacs/button.pyi,sha256=Y9KT1jkf0N8SGnbKJZsRKlHKi9oHzHflgYCCzJVfZ2U,2438
|
817
817
|
homeassistant-stubs/components/ecovacs/config_flow.pyi,sha256=a0jE96yzTYaHLjzqa1ECORIiwFg0ATOb0F7f8fnJe0s,1889
|
818
818
|
homeassistant-stubs/components/ecovacs/const.pyi,sha256=KZBGMO_in7MMY3GQ2vxrUYeToY_E24L3-fP39u6wD1Y,334
|
819
|
-
homeassistant-stubs/components/ecovacs/controller.pyi,sha256=
|
819
|
+
homeassistant-stubs/components/ecovacs/controller.pyi,sha256=QWUU1hZJGqpzgrM1GN2ZBXsx3WeOoXC2MKv4Fre7NSY,1827
|
820
820
|
homeassistant-stubs/components/ecovacs/diagnostics.pyi,sha256=ohsT8wpJZSW5FIj0_AyKY8uupIQElPSxqEspTJ-0uqA,675
|
821
821
|
homeassistant-stubs/components/ecovacs/entity.pyi,sha256=MSzKIjM9dkaIdqigMWOxnx70iHtSHHAZPtc6kF44l10,2517
|
822
822
|
homeassistant-stubs/components/ecovacs/event.pyi,sha256=QM7K-DrZBQ8AeOcjOwgV4IJIDA713gVXKpwV-slf_dI,1056
|
@@ -1129,7 +1129,7 @@ homeassistant-stubs/components/glances/__init__.pyi,sha256=ZAjVUFeN-QpS-x6Yp-PHR
|
|
1129
1129
|
homeassistant-stubs/components/glances/config_flow.pyi,sha256=PCwGHluzCdsj0kwHp_o72G9zOLMic2ZtHIooal50NCg,1046
|
1130
1130
|
homeassistant-stubs/components/glances/const.pyi,sha256=bfttylfl1LkuE1doq8--8feKcQvBtgyt-lU59a6EUKg,155
|
1131
1131
|
homeassistant-stubs/components/glances/coordinator.pyi,sha256=rht3P0VeXXngzYrFQer3jg1jH11lkz5k5frRAAwwhNQ,1009
|
1132
|
-
homeassistant-stubs/components/glances/sensor.pyi,sha256=
|
1132
|
+
homeassistant-stubs/components/glances/sensor.pyi,sha256=lN9vtr3ZXfcHSifVyPCM-ZT9tXPg6awhpfQIyf5WX0Q,2453
|
1133
1133
|
homeassistant-stubs/components/goalzero/__init__.pyi,sha256=SewH2e3FxdXwaXOFXOr2DswVJMS2UzOHTk948U2P9eI,764
|
1134
1134
|
homeassistant-stubs/components/goalzero/binary_sensor.pyi,sha256=XynzAbz3knRbNbeALSQT8Vkvj_u6VFtgmFvcMav1mdM,879
|
1135
1135
|
homeassistant-stubs/components/goalzero/config_flow.pyi,sha256=7MbkY_7g8fQ0n9VluGYqnuztQKnwe9eKBY8q8mEeeSs,1122
|
@@ -1513,7 +1513,7 @@ homeassistant-stubs/components/knocki/event.pyi,sha256=R2ZSVS8T3esGkWS-eokY5h8cY
|
|
1513
1513
|
homeassistant-stubs/components/knx/__init__.pyi,sha256=aHye53j5CRYG5YTY6O6nS0q_UGkD_xHcLqVAi2uXvCk,5104
|
1514
1514
|
homeassistant-stubs/components/knx/binary_sensor.pyi,sha256=n72jV8XAhwklMlxVJ9CsoPMKak_VgG-OyQ4rr1h2ds8,1755
|
1515
1515
|
homeassistant-stubs/components/knx/button.pyi,sha256=TSxWMnGrTg51Y-H60LFEucsPSA5_CNPWiYjZy9T4rGQ,1263
|
1516
|
-
homeassistant-stubs/components/knx/climate.pyi,sha256=
|
1516
|
+
homeassistant-stubs/components/knx/climate.pyi,sha256=OTf_nZ76BQ6bX7yHNYNGmWEmVlOQdUht0aGZ4_PA3wA,3062
|
1517
1517
|
homeassistant-stubs/components/knx/config_flow.pyi,sha256=9jQEjOqhkBoy7OmsDx4aIqHubKwpPdCIyjusl9Cs8XU,5367
|
1518
1518
|
homeassistant-stubs/components/knx/const.pyi,sha256=y3uavAxO-5bnRkt4mKybMutxUX8VrvTcjo-jqDxbvQM,3117
|
1519
1519
|
homeassistant-stubs/components/knx/cover.pyi,sha256=KdGubm5x6AyfddY-0tzm6gUzATXX8GQXTFD7GZ-BW-k,2373
|
@@ -2194,7 +2194,7 @@ homeassistant-stubs/components/pi_hole/const.pyi,sha256=XNYNkXqCP-kYZ7ipW4SVNvM3
|
|
2194
2194
|
homeassistant-stubs/components/pi_hole/diagnostics.pyi,sha256=z3mQ_CXQllpLyQzupiTDyR42rdsEV3t9S0MHRNQcj24,459
|
2195
2195
|
homeassistant-stubs/components/pi_hole/sensor.pyi,sha256=Rl-lt7i_o3-GvCGa8syK-9O5tTKv5fnj7OoPQiTJwAY,1233
|
2196
2196
|
homeassistant-stubs/components/pi_hole/switch.pyi,sha256=FehPnWISaloaaq6DXeypTDbSSyEcatHI0smVvezXs6o,1165
|
2197
|
-
homeassistant-stubs/components/pi_hole/update.pyi,sha256=
|
2197
|
+
homeassistant-stubs/components/pi_hole/update.pyi,sha256=N-8nn99US4JODO9Ejfv2YqjPg2azgM16CFTfGkEjy54,2149
|
2198
2198
|
homeassistant-stubs/components/ping/__init__.pyi,sha256=-eflIyHLyVdVTY3cJfJT6IxqnHuTWkUwABPZTT5usks,1228
|
2199
2199
|
homeassistant-stubs/components/ping/binary_sensor.pyi,sha256=PKtrBwsImvNyVdpdjr-Lkb71BZ_PRLs_z28xyTSbDw4,1321
|
2200
2200
|
homeassistant-stubs/components/ping/config_flow.pyi,sha256=OJlaNr4sWzJ2zjXgRZe4X8-wRgrr1pCN6uB1iz8vfZk,1225
|
@@ -2356,7 +2356,7 @@ homeassistant-stubs/components/recorder/history/common.pyi,sha256=x-4Swd7277gcHw
|
|
2356
2356
|
homeassistant-stubs/components/recorder/history/const.pyi,sha256=QiVq0ILuLWh_v0c_ZAhhaJuS_a2B4yKXQHgy97r81rs,212
|
2357
2357
|
homeassistant-stubs/components/recorder/history/legacy.pyi,sha256=CtWFpp3KmHhy5d1icMSN6fHOUmo3By6xzFWwAYZRSrs,5527
|
2358
2358
|
homeassistant-stubs/components/recorder/history/modern.pyi,sha256=IdzzRfC_HM2qNIDrUXG6Dj9-f0CNYpb5oqkip8uQbFU,5237
|
2359
|
-
homeassistant-stubs/components/recorder/migration.pyi,sha256=
|
2359
|
+
homeassistant-stubs/components/recorder/migration.pyi,sha256=4j21j5WmrI0lUCMDaY8DCO2Ev1e2ng1F5PZ32AjpiN0,18502
|
2360
2360
|
homeassistant-stubs/components/recorder/models/__init__.pyi,sha256=rIegeqBnmMKhv3iJEp_1YMdjzQcSbIDwOvUmFfRQanw,1887
|
2361
2361
|
homeassistant-stubs/components/recorder/models/context.pyi,sha256=ozPnonl9i-pXBokFkAq5QTEtsxj8Yfb7M2M444kyFRI,394
|
2362
2362
|
homeassistant-stubs/components/recorder/models/database.pyi,sha256=59cqL8iEiBTQrF-n762RORfm9Q_xaJ8OW_7PbARe3WY,554
|
@@ -3161,7 +3161,7 @@ homeassistant-stubs/components/vlc_telnet/config_flow.pyi,sha256=xxLu1DafygONjDb
|
|
3161
3161
|
homeassistant-stubs/components/vlc_telnet/const.pyi,sha256=KyCTKV9087wsLPiRcvts8PGW4Tw2qeQd2wvm_mwbt7Q,135
|
3162
3162
|
homeassistant-stubs/components/vlc_telnet/media_player.pyi,sha256=u7K7o55a3MZIqiixV05qWQmohUaPhCUguvHISorWN1o,3191
|
3163
3163
|
homeassistant-stubs/components/wake_on_lan/__init__.pyi,sha256=OvyHJH7caWo2ITC5ylFgG8X-s2ExKoL_JGC9XAelsfI,913
|
3164
|
-
homeassistant-stubs/components/wake_on_lan/button.pyi,sha256=
|
3164
|
+
homeassistant-stubs/components/wake_on_lan/button.pyi,sha256=7nPtImsl8wVGceuKFD7Dx3YblBsWRMTqihqJ1QRI2hM,1011
|
3165
3165
|
homeassistant-stubs/components/wake_on_lan/config_flow.pyi,sha256=W--Klf6w1gHa7vWoIG-v9jRLXifInmqQ_IPcXeW2KNQ,1237
|
3166
3166
|
homeassistant-stubs/components/wake_on_lan/const.pyi,sha256=GPOweaquS47PsjjPtkEnhEwUgTETDsrNHnw6-zS1xUI,186
|
3167
3167
|
homeassistant-stubs/components/wake_on_lan/switch.pyi,sha256=pI_dB8Tf25tcGuBL3J9DkfljR8_Wo-W1WfHXqDo7W-w,1715
|
@@ -3513,7 +3513,7 @@ homeassistant-stubs/util/yaml/dumper.pyi,sha256=uQjW0KuME-gXVWgYJLNLoRDwDzVhhhgg
|
|
3513
3513
|
homeassistant-stubs/util/yaml/input.pyi,sha256=wuxpKYTXZL4MujFhqjHnRLv4VPYY6QPYd-Zji-Lz9Mo,383
|
3514
3514
|
homeassistant-stubs/util/yaml/loader.pyi,sha256=YJBfnreepz_lhluQPSW4zVkwMv6fj2gZfGJtWObnfLg,4652
|
3515
3515
|
homeassistant-stubs/util/yaml/objects.pyi,sha256=YUlr0nf9ugzJT9J2YHaGV2fXu5opuyNvvHPqNW46m5I,707
|
3516
|
-
homeassistant_stubs-2024.8.
|
3517
|
-
homeassistant_stubs-2024.8.
|
3518
|
-
homeassistant_stubs-2024.8.
|
3519
|
-
homeassistant_stubs-2024.8.
|
3516
|
+
homeassistant_stubs-2024.8.2.dist-info/WHEEL,sha256=vVCvjcmxuUltf8cYhJ0sJMRDLr1XsPuxEId8YDzbyCY,88
|
3517
|
+
homeassistant_stubs-2024.8.2.dist-info/LICENSE,sha256=_kHFjg-MAmJ-lXc7HiEjUzD3vZutVYKUVZZpAWcIuqo,1075
|
3518
|
+
homeassistant_stubs-2024.8.2.dist-info/METADATA,sha256=-dounkAgDwdNf9uwlGLWaCPjzvupK__ALe8H-cK-5rg,3011
|
3519
|
+
homeassistant_stubs-2024.8.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|