homeassistant-stubs 2024.10.0b9__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-2024.10.0b9.dist-info → homeassistant_stubs-2024.10.0b10.dist-info}/METADATA +2 -2
- {homeassistant_stubs-2024.10.0b9.dist-info → homeassistant_stubs-2024.10.0b10.dist-info}/RECORD +7 -7
- {homeassistant_stubs-2024.10.0b9.dist-info → homeassistant_stubs-2024.10.0b10.dist-info}/WHEEL +0 -0
- {homeassistant_stubs-2024.10.0b9.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: ...
|
{homeassistant_stubs-2024.10.0b9.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.0b9.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
|
@@ -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.0b9.dist-info → homeassistant_stubs-2024.10.0b10.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|