homeassistant-stubs 2024.10.0b8__py3-none-any.whl → 2024.10.0b10__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/recorder/core.pyi +2 -2
- homeassistant-stubs/components/recorder/tasks.pyi +4 -2
- homeassistant-stubs/components/recorder/websocket_api.pyi +4 -2
- homeassistant-stubs/components/tibber/services.pyi +2 -2
- homeassistant-stubs/components/zwave_js/discovery.pyi +0 -1
- homeassistant-stubs/components/zwave_js/light.pyi +6 -8
- {homeassistant_stubs-2024.10.0b8.dist-info → homeassistant_stubs-2024.10.0b10.dist-info}/METADATA +2 -2
- {homeassistant_stubs-2024.10.0b8.dist-info → homeassistant_stubs-2024.10.0b10.dist-info}/RECORD +10 -10
- {homeassistant_stubs-2024.10.0b8.dist-info → homeassistant_stubs-2024.10.0b10.dist-info}/WHEEL +0 -0
- {homeassistant_stubs-2024.10.0b8.dist-info → homeassistant_stubs-2024.10.0b10.dist-info}/licenses/LICENSE +0 -0
@@ -137,8 +137,8 @@ class Recorder(threading.Thread):
|
|
137
137
|
def _adjust_lru_size(self) -> None: ...
|
138
138
|
def async_periodic_statistics(self) -> None: ...
|
139
139
|
def async_adjust_statistics(self, statistic_id: str, start_time: datetime, sum_adjustment: float, adjustment_unit: str) -> None: ...
|
140
|
-
def async_clear_statistics(self, statistic_ids: list[str]) -> None: ...
|
141
|
-
def async_update_statistics_metadata(self, statistic_id: str, *, new_statistic_id: str | UndefinedType = ..., new_unit_of_measurement: str | None | UndefinedType =
|
140
|
+
def async_clear_statistics(self, statistic_ids: list[str], *, on_done: Callable[[], None] | None = None) -> None: ...
|
141
|
+
def async_update_statistics_metadata(self, statistic_id: str, *, new_statistic_id: str | UndefinedType = ..., new_unit_of_measurement: str | None | UndefinedType = ..., on_done: Callable[[], None] | None = None) -> None: ...
|
142
142
|
def async_update_states_metadata(self, entity_id: str, new_entity_id: str) -> None: ...
|
143
143
|
def async_change_statistics_unit(self, statistic_id: str, *, new_unit_of_measurement: str, old_unit_of_measurement: str) -> None: ...
|
144
144
|
def async_import_statistics(self, metadata: StatisticMetaData, stats: Iterable[StatisticData], table: type[Statistics | StatisticsShortTerm]) -> None: ...
|
@@ -33,17 +33,19 @@ class ChangeStatisticsUnitTask(RecorderTask):
|
|
33
33
|
|
34
34
|
@dataclass(slots=True)
|
35
35
|
class ClearStatisticsTask(RecorderTask):
|
36
|
+
on_done: Callable[[], None] | None
|
36
37
|
statistic_ids: list[str]
|
37
38
|
def run(self, instance: Recorder) -> None: ...
|
38
|
-
def __init__(self, statistic_ids) -> None: ...
|
39
|
+
def __init__(self, on_done, statistic_ids) -> None: ...
|
39
40
|
|
40
41
|
@dataclass(slots=True)
|
41
42
|
class UpdateStatisticsMetadataTask(RecorderTask):
|
43
|
+
on_done: Callable[[], None] | None
|
42
44
|
statistic_id: str
|
43
45
|
new_statistic_id: str | None | UndefinedType
|
44
46
|
new_unit_of_measurement: str | None | UndefinedType
|
45
47
|
def run(self, instance: Recorder) -> None: ...
|
46
|
-
def __init__(self, statistic_id, new_statistic_id, new_unit_of_measurement) -> None: ...
|
48
|
+
def __init__(self, on_done, statistic_id, new_statistic_id, new_unit_of_measurement) -> None: ...
|
47
49
|
|
48
50
|
@dataclass(slots=True)
|
49
51
|
class UpdateStatesMetadataTask(RecorderTask):
|
@@ -11,6 +11,8 @@ from homeassistant.helpers.json import json_bytes as json_bytes
|
|
11
11
|
from homeassistant.util.unit_conversion import ConductivityConverter as ConductivityConverter, DataRateConverter as DataRateConverter, DistanceConverter as DistanceConverter, DurationConverter as DurationConverter, ElectricCurrentConverter as ElectricCurrentConverter, ElectricPotentialConverter as ElectricPotentialConverter, EnergyConverter as EnergyConverter, InformationConverter as InformationConverter, MassConverter as MassConverter, PowerConverter as PowerConverter, PressureConverter as PressureConverter, SpeedConverter as SpeedConverter, TemperatureConverter as TemperatureConverter, UnitlessRatioConverter as UnitlessRatioConverter, VolumeConverter as VolumeConverter, VolumeFlowRateConverter as VolumeFlowRateConverter
|
12
12
|
from typing import Any, Literal
|
13
13
|
|
14
|
+
CLEAR_STATISTICS_TIME_OUT: int
|
15
|
+
UPDATE_STATISTICS_METADATA_TIME_OUT: int
|
14
16
|
UNIT_SCHEMA: Incomplete
|
15
17
|
|
16
18
|
def async_setup(hass: HomeAssistant) -> None: ...
|
@@ -24,9 +26,9 @@ async def ws_handle_list_statistic_ids(hass: HomeAssistant, connection: websocke
|
|
24
26
|
async def ws_list_statistic_ids(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict[str, Any]) -> None: ...
|
25
27
|
async def ws_validate_statistics(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict[str, Any]) -> None: ...
|
26
28
|
async def ws_update_statistics_issues(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict[str, Any]) -> None: ...
|
27
|
-
def ws_clear_statistics(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict[str, Any]) -> None: ...
|
29
|
+
async def ws_clear_statistics(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict[str, Any]) -> None: ...
|
28
30
|
async def ws_get_statistics_metadata(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict[str, Any]) -> None: ...
|
29
|
-
def ws_update_statistics_metadata(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict[str, Any]) -> None: ...
|
31
|
+
async def ws_update_statistics_metadata(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict[str, Any]) -> None: ...
|
30
32
|
def ws_change_statistics_unit(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict[str, Any]) -> None: ...
|
31
33
|
async def ws_adjust_sum_statistics(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict[str, Any]) -> None: ...
|
32
34
|
def ws_import_statistics(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict[str, Any]) -> None: ...
|
@@ -1,6 +1,6 @@
|
|
1
1
|
from .const import DOMAIN as DOMAIN
|
2
2
|
from _typeshed import Incomplete
|
3
|
-
from datetime import
|
3
|
+
from datetime import datetime
|
4
4
|
from homeassistant.core import HomeAssistant as HomeAssistant, ServiceCall as ServiceCall, ServiceResponse as ServiceResponse, SupportsResponse as SupportsResponse, callback as callback
|
5
5
|
from homeassistant.exceptions import ServiceValidationError as ServiceValidationError
|
6
6
|
from typing import Final
|
@@ -11,5 +11,5 @@ ATTR_END: Final[str]
|
|
11
11
|
SERVICE_SCHEMA: Final[Incomplete]
|
12
12
|
|
13
13
|
async def __get_prices(call: ServiceCall, *, hass: HomeAssistant) -> ServiceResponse: ...
|
14
|
-
def __get_date(date_input: str | None, mode: str | None) ->
|
14
|
+
def __get_date(date_input: str | None, mode: str | None) -> datetime: ...
|
15
15
|
def async_setup_services(hass: HomeAssistant) -> None: ...
|
@@ -85,7 +85,6 @@ DOOR_LOCK_CURRENT_MODE_SCHEMA: Incomplete
|
|
85
85
|
SWITCH_MULTILEVEL_CURRENT_VALUE_SCHEMA: Incomplete
|
86
86
|
SWITCH_MULTILEVEL_TARGET_VALUE_SCHEMA: Incomplete
|
87
87
|
SWITCH_BINARY_CURRENT_VALUE_SCHEMA: Incomplete
|
88
|
-
COLOR_SWITCH_CURRENT_VALUE_SCHEMA: Incomplete
|
89
88
|
SIREN_TONE_SCHEMA: Incomplete
|
90
89
|
WINDOW_COVERING_COVER_CURRENT_VALUE_SCHEMA: Incomplete
|
91
90
|
WINDOW_COVERING_SLAT_CURRENT_VALUE_SCHEMA: Incomplete
|
@@ -22,10 +22,9 @@ class ZwaveLight(ZWaveBaseEntity, LightEntity):
|
|
22
22
|
_supports_color: bool
|
23
23
|
_supports_rgbw: bool
|
24
24
|
_supports_color_temp: bool
|
25
|
-
_supports_dimming: bool
|
26
|
-
_color_mode: Incomplete
|
27
25
|
_hs_color: Incomplete
|
28
26
|
_rgbw_color: Incomplete
|
27
|
+
_color_mode: Incomplete
|
29
28
|
_color_temp: Incomplete
|
30
29
|
_min_mireds: int
|
31
30
|
_max_mireds: int
|
@@ -34,7 +33,6 @@ class ZwaveLight(ZWaveBaseEntity, LightEntity):
|
|
34
33
|
_supported_color_modes: Incomplete
|
35
34
|
_target_brightness: Incomplete
|
36
35
|
_attr_name: Incomplete
|
37
|
-
_current_color: Incomplete
|
38
36
|
_target_color: Incomplete
|
39
37
|
supports_brightness_transition: Incomplete
|
40
38
|
supports_color_transition: Incomplete
|
@@ -61,18 +59,18 @@ class ZwaveLight(ZWaveBaseEntity, LightEntity):
|
|
61
59
|
def supported_color_modes(self) -> set[ColorMode] | None: ...
|
62
60
|
async def async_turn_on(self, **kwargs: Any) -> None: ...
|
63
61
|
async def async_turn_off(self, **kwargs: Any) -> None: ...
|
64
|
-
def _get_new_colors(self, hs_color: tuple[float, float] | None, color_temp: int | None, rgbw: tuple[int, int, int, int] | None, brightness_scale: float | None = None) -> dict[ColorComponent, int] | None: ...
|
65
62
|
async def _async_set_colors(self, colors: dict[ColorComponent, int], transition: float | None = None) -> None: ...
|
66
63
|
async def _async_set_brightness(self, brightness: int | None, transition: float | None = None) -> None: ...
|
67
64
|
def _get_color_values(self) -> tuple[Value | None, ...]: ...
|
68
65
|
def _calculate_color_support(self) -> None: ...
|
69
66
|
def _calculate_color_values(self) -> None: ...
|
70
67
|
|
71
|
-
class
|
72
|
-
|
73
|
-
_last_brightness: Incomplete
|
68
|
+
class ZwaveBlackIsOffLight(ZwaveLight):
|
69
|
+
_last_color: Incomplete
|
74
70
|
def __init__(self, config_entry: ConfigEntry, driver: Driver, info: ZwaveDiscoveryInfo) -> None: ...
|
75
71
|
@property
|
76
|
-
def brightness(self) -> int
|
72
|
+
def brightness(self) -> int: ...
|
73
|
+
@property
|
74
|
+
def is_on(self) -> bool | None: ...
|
77
75
|
async def async_turn_on(self, **kwargs: Any) -> None: ...
|
78
76
|
async def async_turn_off(self, **kwargs: Any) -> None: ...
|
{homeassistant_stubs-2024.10.0b8.dist-info → homeassistant_stubs-2024.10.0b10.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: homeassistant-stubs
|
3
|
-
Version: 2024.10.
|
3
|
+
Version: 2024.10.0b10
|
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.13,>=3.12
|
21
|
-
Requires-Dist: homeassistant==2024.10.
|
21
|
+
Requires-Dist: homeassistant==2024.10.0b10
|
22
22
|
Description-Content-Type: text/markdown
|
23
23
|
|
24
24
|
[](https://github.com/KapJI/homeassistant-stubs/actions/workflows/ci.yaml)
|
{homeassistant_stubs-2024.10.0b8.dist-info → homeassistant_stubs-2024.10.0b10.dist-info}/RECORD
RENAMED
@@ -2439,7 +2439,7 @@ homeassistant-stubs/components/recorder/__init__.pyi,sha256=10z5DQ17UYdDCgoJkhUs
|
|
2439
2439
|
homeassistant-stubs/components/recorder/backup.pyi,sha256=GsFwE8bwZazWZW7vHY7-9f4cwr6R1tPDGdjYA382Wmk,425
|
2440
2440
|
homeassistant-stubs/components/recorder/basic_websocket_api.pyi,sha256=PYHwQWF0vU1phTZaCXawTsK9WqyjYqM2FCkCQjnyH0M,384
|
2441
2441
|
homeassistant-stubs/components/recorder/const.pyi,sha256=RymPWZ1aFzpRbQqS_FvVO6iBjaY-bJGMua_xQ5qIT6c,1499
|
2442
|
-
homeassistant-stubs/components/recorder/core.pyi,sha256=
|
2442
|
+
homeassistant-stubs/components/recorder/core.pyi,sha256=DIuCNAg-2FYQispqe3kUPT3PzKNSoh3sqbn0k7VxaRs,12560
|
2443
2443
|
homeassistant-stubs/components/recorder/db_schema.pyi,sha256=YjMSn1IwW3TNlbV1CwQRHzBrJ4hUrOg-MEzTH6O6804,10470
|
2444
2444
|
homeassistant-stubs/components/recorder/entity_registry.pyi,sha256=KQkJUlsXDdEHhnzy2f58byStPFplR3BoANWzwPIhbEM,578
|
2445
2445
|
homeassistant-stubs/components/recorder/executor.pyi,sha256=jZUJLt2lp1TuQy9NnaK8zOaENozPLxbvsUzZQu9i0RQ,667
|
@@ -2451,9 +2451,9 @@ homeassistant-stubs/components/recorder/queries.pyi,sha256=yRoXtNJiBJHx1yZtTW9JP
|
|
2451
2451
|
homeassistant-stubs/components/recorder/repack.pyi,sha256=uT-A8NGsSHYz1fQo2pVBFVRzp0z0GhMiwN5Ydl4bUN4,247
|
2452
2452
|
homeassistant-stubs/components/recorder/services.pyi,sha256=VULd5jf1yak05XG2PL4xrwHp5any94qRVhxdc14hdHI,1429
|
2453
2453
|
homeassistant-stubs/components/recorder/statistics.pyi,sha256=bhJKTH9Kgc5DjUCC-Vcon0E4XHCzTk9JDolQ8da3Bwo,17671
|
2454
|
-
homeassistant-stubs/components/recorder/tasks.pyi,sha256=
|
2454
|
+
homeassistant-stubs/components/recorder/tasks.pyi,sha256=tAWvBT3b2eAwjjXNgCQ5wjOxqnV5HsfWUfymCayl00I,5296
|
2455
2455
|
homeassistant-stubs/components/recorder/util.pyi,sha256=GZkApm_WFfZFxiflvGIHhDDvhJeAFknMtxyoEx5loQE,5927
|
2456
|
-
homeassistant-stubs/components/recorder/websocket_api.pyi,sha256=
|
2456
|
+
homeassistant-stubs/components/recorder/websocket_api.pyi,sha256=ozkyd-fOsok4Uid6vzn-omOtSDPDJiajZA7OMvFe4Nc,4543
|
2457
2457
|
homeassistant-stubs/components/recorder/auto_repairs/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2458
2458
|
homeassistant-stubs/components/recorder/auto_repairs/schema.pyi,sha256=49BwhW8wax66k5SVzZXDwq8O2HMmPmgHOTpaCLsDuOo,1933
|
2459
2459
|
homeassistant-stubs/components/recorder/auto_repairs/events/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -3055,7 +3055,7 @@ homeassistant-stubs/components/tibber/coordinator.pyi,sha256=TMDwzYDutlHKb9_NSoz
|
|
3055
3055
|
homeassistant-stubs/components/tibber/diagnostics.pyi,sha256=J8-L9UWf3tMTkF3pS6xO5toEvoKEEVOMatMIDFCZ1cQ,306
|
3056
3056
|
homeassistant-stubs/components/tibber/notify.pyi,sha256=cur1SBJpnRVDqXAv2w2enlLEw5zu5MJ9ZsROchV8UNg,1683
|
3057
3057
|
homeassistant-stubs/components/tibber/sensor.pyi,sha256=o7jWZg969XX7QLmScLy3I8iWWXKuOqh3J72gfq7bvOk,4795
|
3058
|
-
homeassistant-stubs/components/tibber/services.pyi,sha256=
|
3058
|
+
homeassistant-stubs/components/tibber/services.pyi,sha256=5I4qbekm0M3NXAW3ohijOJZgOtCuhma1qii40wslAgU,723
|
3059
3059
|
homeassistant-stubs/components/tile/__init__.pyi,sha256=DHkSlYwkUCSF0NL2T44x6u8USDWQSKA95Md3Zk_e-Sw,1458
|
3060
3060
|
homeassistant-stubs/components/tile/config_flow.pyi,sha256=wj2vVby8afmyIMk5DsOoPv2mujP3hFoGeLJDadRLAG8,1149
|
3061
3061
|
homeassistant-stubs/components/tile/const.pyi,sha256=ApJjYGIfxEHQ112a2tGXF7SyTQbhrih7AUV4OwvbqgQ,65
|
@@ -3494,14 +3494,14 @@ homeassistant-stubs/components/zwave_js/device_automation_helpers.pyi,sha256=qkt
|
|
3494
3494
|
homeassistant-stubs/components/zwave_js/device_condition.pyi,sha256=AwXPgz_NW1RRs18_Tzv0Z5RQayKZVUpd6Pz7C5CR8EA,2260
|
3495
3495
|
homeassistant-stubs/components/zwave_js/device_trigger.pyi,sha256=ljx77uSjE7txgooIAD8uQPmA57VUWL6QUphteKj9uOY,3724
|
3496
3496
|
homeassistant-stubs/components/zwave_js/diagnostics.pyi,sha256=Ym1XWq_vGPLwI38wOGee8zDKQ7pznYNofK0h4teF1aA,1725
|
3497
|
-
homeassistant-stubs/components/zwave_js/discovery.pyi,sha256=
|
3497
|
+
homeassistant-stubs/components/zwave_js/discovery.pyi,sha256=8oAVio9S3puuX543Iue9Ok23Md7PlGPiKZK4sGjaZ_8,5130
|
3498
3498
|
homeassistant-stubs/components/zwave_js/discovery_data_template.pyi,sha256=KtiwgCJ8VujPEb0an3jmLw0Wy9qpinsaba8FcCCpH4E,7553
|
3499
3499
|
homeassistant-stubs/components/zwave_js/entity.pyi,sha256=aAmyR87fNO9p1IIC4Oh7yYQhsOrmZIZhWV86E0YCqbs,2748
|
3500
3500
|
homeassistant-stubs/components/zwave_js/event.pyi,sha256=Qs93rUDkOLYWMTKmCxem3Ub8KyOFN3MXqbnfUNH0rVg,1389
|
3501
3501
|
homeassistant-stubs/components/zwave_js/fan.pyi,sha256=JY11xiEVPfYtEZObtQNEEjPRfE-2QTANnLBPZam1qTM,4086
|
3502
3502
|
homeassistant-stubs/components/zwave_js/helpers.pyi,sha256=58RWHIk2ULH4wcJ3IPE-o8zC-w8SP_TgbHJ1zIlm4_g,4707
|
3503
3503
|
homeassistant-stubs/components/zwave_js/humidifier.pyi,sha256=YxOLu9nBND8AKX86FXYtpnmg1ddQ6XbTXRe-3C6mBbA,2785
|
3504
|
-
homeassistant-stubs/components/zwave_js/light.pyi,sha256=
|
3504
|
+
homeassistant-stubs/components/zwave_js/light.pyi,sha256=gA4V4QSjHwbqPig7nmSlhWVtMl12RFbkqdTPBGw2buE,3538
|
3505
3505
|
homeassistant-stubs/components/zwave_js/lock.pyi,sha256=6dt6vB9RFjsL2tZYqNBuT42XtsuZBle4F0xUMcSQCiw,2346
|
3506
3506
|
homeassistant-stubs/components/zwave_js/logbook.pyi,sha256=aN7cEbfcEkHGMp096AvXt7x3DEaC6JWTiWVg7NQFGBs,950
|
3507
3507
|
homeassistant-stubs/components/zwave_js/migrate.pyi,sha256=oeQDmZTwNW-V_AG9cPy4vJoVmu1nxOC83LctdOPBU58,1864
|
@@ -3654,7 +3654,7 @@ homeassistant-stubs/util/yaml/dumper.pyi,sha256=uQjW0KuME-gXVWgYJLNLoRDwDzVhhhgg
|
|
3654
3654
|
homeassistant-stubs/util/yaml/input.pyi,sha256=wuxpKYTXZL4MujFhqjHnRLv4VPYY6QPYd-Zji-Lz9Mo,383
|
3655
3655
|
homeassistant-stubs/util/yaml/loader.pyi,sha256=FJDEgKwYTwuB8hBeJVjqwYqJ5hQZTSF_DtsnuO-E-pM,4758
|
3656
3656
|
homeassistant-stubs/util/yaml/objects.pyi,sha256=YUlr0nf9ugzJT9J2YHaGV2fXu5opuyNvvHPqNW46m5I,707
|
3657
|
-
homeassistant_stubs-2024.10.
|
3658
|
-
homeassistant_stubs-2024.10.
|
3659
|
-
homeassistant_stubs-2024.10.
|
3660
|
-
homeassistant_stubs-2024.10.
|
3657
|
+
homeassistant_stubs-2024.10.0b10.dist-info/METADATA,sha256=5frqwI532n-ZJuzFFBWCZCM2KpGC-s3LvyqvX-mP0tQ,2960
|
3658
|
+
homeassistant_stubs-2024.10.0b10.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
3659
|
+
homeassistant_stubs-2024.10.0b10.dist-info/licenses/LICENSE,sha256=_kHFjg-MAmJ-lXc7HiEjUzD3vZutVYKUVZZpAWcIuqo,1075
|
3660
|
+
homeassistant_stubs-2024.10.0b10.dist-info/RECORD,,
|
{homeassistant_stubs-2024.10.0b8.dist-info → homeassistant_stubs-2024.10.0b10.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|