homeassistant-stubs 2025.1.0b3__py3-none-any.whl → 2025.1.0b4__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/google_cloud/const.pyi +3 -0
- homeassistant-stubs/components/google_cloud/helpers.pyi +1 -1
- homeassistant-stubs/components/google_cloud/tts.pyi +1 -1
- homeassistant-stubs/components/prometheus/__init__.pyi +11 -3
- {homeassistant_stubs-2025.1.0b3.dist-info → homeassistant_stubs-2025.1.0b4.dist-info}/METADATA +2 -2
- {homeassistant_stubs-2025.1.0b3.dist-info → homeassistant_stubs-2025.1.0b4.dist-info}/RECORD +8 -8
- {homeassistant_stubs-2025.1.0b3.dist-info → homeassistant_stubs-2025.1.0b4.dist-info}/WHEEL +0 -0
- {homeassistant_stubs-2025.1.0b3.dist-info → homeassistant_stubs-2025.1.0b4.dist-info}/licenses/LICENSE +0 -0
@@ -1,5 +1,5 @@
|
|
1
1
|
import voluptuous as vol
|
2
|
-
from .const import CONF_ENCODING as CONF_ENCODING, CONF_GAIN as CONF_GAIN, CONF_GENDER as CONF_GENDER, CONF_KEY_FILE as CONF_KEY_FILE, CONF_PITCH as CONF_PITCH, CONF_PROFILES as CONF_PROFILES, CONF_SPEED as CONF_SPEED, CONF_TEXT_TYPE as CONF_TEXT_TYPE, CONF_VOICE as CONF_VOICE, DEFAULT_LANG as DEFAULT_LANG
|
2
|
+
from .const import CONF_ENCODING as CONF_ENCODING, CONF_GAIN as CONF_GAIN, CONF_GENDER as CONF_GENDER, CONF_KEY_FILE as CONF_KEY_FILE, CONF_PITCH as CONF_PITCH, CONF_PROFILES as CONF_PROFILES, CONF_SPEED as CONF_SPEED, CONF_TEXT_TYPE as CONF_TEXT_TYPE, CONF_VOICE as CONF_VOICE, DEFAULT_GAIN as DEFAULT_GAIN, DEFAULT_LANG as DEFAULT_LANG, DEFAULT_PITCH as DEFAULT_PITCH, DEFAULT_SPEED as DEFAULT_SPEED
|
3
3
|
from collections.abc import Mapping
|
4
4
|
from google.cloud import texttospeech
|
5
5
|
from homeassistant.components.tts import CONF_LANG as CONF_LANG
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import voluptuous as vol
|
2
|
-
from .const import CONF_ENCODING as CONF_ENCODING, CONF_GAIN as CONF_GAIN, CONF_GENDER as CONF_GENDER, CONF_KEY_FILE as CONF_KEY_FILE, CONF_PITCH as CONF_PITCH, CONF_PROFILES as CONF_PROFILES, CONF_SERVICE_ACCOUNT_INFO as CONF_SERVICE_ACCOUNT_INFO, CONF_SPEED as CONF_SPEED, CONF_TEXT_TYPE as CONF_TEXT_TYPE, CONF_VOICE as CONF_VOICE, DEFAULT_LANG as DEFAULT_LANG, DOMAIN as DOMAIN
|
2
|
+
from .const import CONF_ENCODING as CONF_ENCODING, CONF_GAIN as CONF_GAIN, CONF_GENDER as CONF_GENDER, CONF_KEY_FILE as CONF_KEY_FILE, CONF_PITCH as CONF_PITCH, CONF_PROFILES as CONF_PROFILES, CONF_SERVICE_ACCOUNT_INFO as CONF_SERVICE_ACCOUNT_INFO, CONF_SPEED as CONF_SPEED, CONF_TEXT_TYPE as CONF_TEXT_TYPE, CONF_VOICE as CONF_VOICE, DEFAULT_GAIN as DEFAULT_GAIN, DEFAULT_LANG as DEFAULT_LANG, DEFAULT_PITCH as DEFAULT_PITCH, DEFAULT_SPEED as DEFAULT_SPEED, DOMAIN as DOMAIN
|
3
3
|
from .helpers import async_tts_voices as async_tts_voices, tts_options_schema as tts_options_schema, tts_platform_schema as tts_platform_schema
|
4
4
|
from _typeshed import Incomplete
|
5
5
|
from google.cloud import texttospeech
|
@@ -1,6 +1,7 @@
|
|
1
1
|
from _typeshed import Incomplete
|
2
2
|
from aiohttp import web
|
3
3
|
from collections.abc import Callable as Callable
|
4
|
+
from dataclasses import dataclass
|
4
5
|
from homeassistant.components.alarm_control_panel import AlarmControlPanelState as AlarmControlPanelState
|
5
6
|
from homeassistant.components.climate import ATTR_CURRENT_TEMPERATURE as ATTR_CURRENT_TEMPERATURE, ATTR_FAN_MODE as ATTR_FAN_MODE, ATTR_FAN_MODES as ATTR_FAN_MODES, ATTR_HVAC_ACTION as ATTR_HVAC_ACTION, ATTR_HVAC_MODES as ATTR_HVAC_MODES, ATTR_TARGET_TEMP_HIGH as ATTR_TARGET_TEMP_HIGH, ATTR_TARGET_TEMP_LOW as ATTR_TARGET_TEMP_LOW, HVACAction as HVACAction
|
6
7
|
from homeassistant.components.cover import ATTR_CURRENT_POSITION as ATTR_CURRENT_POSITION, ATTR_CURRENT_TILT_POSITION as ATTR_CURRENT_TILT_POSITION
|
@@ -39,6 +40,12 @@ CONFIG_SCHEMA: Incomplete
|
|
39
40
|
|
40
41
|
def setup(hass: HomeAssistant, config: ConfigType) -> bool: ...
|
41
42
|
|
43
|
+
@dataclass(frozen=True, slots=True)
|
44
|
+
class MetricNameWithLabelValues:
|
45
|
+
metric_name: str
|
46
|
+
label_values: tuple[str, ...]
|
47
|
+
def __init__(self, metric_name, label_values) -> None: ...
|
48
|
+
|
42
49
|
class PrometheusMetrics:
|
43
50
|
_component_config: Incomplete
|
44
51
|
_override_metric: Incomplete
|
@@ -47,20 +54,21 @@ class PrometheusMetrics:
|
|
47
54
|
_sensor_metric_handlers: Incomplete
|
48
55
|
metrics_prefix: Incomplete
|
49
56
|
_metrics: Incomplete
|
57
|
+
_metrics_by_entity_id: Incomplete
|
50
58
|
_climate_units: Incomplete
|
51
59
|
def __init__(self, entity_filter: entityfilter.EntityFilter, namespace: str, climate_units: UnitOfTemperature, component_config: EntityValues, override_metric: str | None, default_metric: str | None) -> None: ...
|
52
60
|
def handle_state_changed_event(self, event: Event[EventStateChangedData]) -> None: ...
|
53
61
|
def handle_state(self, state: State) -> None: ...
|
54
62
|
def handle_entity_registry_updated(self, event: Event[EventEntityRegistryUpdatedData]) -> None: ...
|
55
|
-
def _remove_labelsets(self, entity_id: str,
|
63
|
+
def _remove_labelsets(self, entity_id: str, ignored_metric_names: set[str] | None = None) -> None: ...
|
56
64
|
def _handle_attributes(self, state: State) -> None: ...
|
57
|
-
def _metric[_MetricBaseT: MetricWrapperBase](self,
|
65
|
+
def _metric[_MetricBaseT: MetricWrapperBase](self, metric_name: str, factory: type[_MetricBaseT], documentation: str, labels: dict[str, str]) -> _MetricBaseT: ...
|
58
66
|
@staticmethod
|
59
67
|
def _sanitize_metric_name(metric: str) -> str: ...
|
60
68
|
@staticmethod
|
61
69
|
def state_as_number(state: State) -> float | None: ...
|
62
70
|
@staticmethod
|
63
|
-
def _labels(state: State) -> dict[str, Any]: ...
|
71
|
+
def _labels(state: State, extra_labels: dict[str, str] | None = None) -> dict[str, Any]: ...
|
64
72
|
def _battery(self, state: State) -> None: ...
|
65
73
|
def _handle_binary_sensor(self, state: State) -> None: ...
|
66
74
|
def _handle_input_boolean(self, state: State) -> None: ...
|
{homeassistant_stubs-2025.1.0b3.dist-info → homeassistant_stubs-2025.1.0b4.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: homeassistant-stubs
|
3
|
-
Version: 2025.1.
|
3
|
+
Version: 2025.1.0b4
|
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==2025.1.
|
21
|
+
Requires-Dist: homeassistant==2025.1.0b4
|
22
22
|
Description-Content-Type: text/markdown
|
23
23
|
|
24
24
|
[](https://github.com/KapJI/homeassistant-stubs/actions/workflows/ci.yaml)
|
{homeassistant_stubs-2025.1.0b3.dist-info → homeassistant_stubs-2025.1.0b4.dist-info}/RECORD
RENAMED
@@ -1257,10 +1257,10 @@ homeassistant-stubs/components/google_assistant_sdk/helpers.pyi,sha256=5WW6R-BXR
|
|
1257
1257
|
homeassistant-stubs/components/google_assistant_sdk/notify.pyi,sha256=qFaxBcjY0bPO4GiIhBvlTbbc6-O7VJgBEf5Atn-UylQ,1098
|
1258
1258
|
homeassistant-stubs/components/google_cloud/__init__.pyi,sha256=NBiTxJzL-JVg0vv6utQQeP8OO_lu2AkbnMY_089W9dQ,490
|
1259
1259
|
homeassistant-stubs/components/google_cloud/config_flow.pyi,sha256=xnRXZli38Gucn24c9e-as1gGxeZfCP6EcbxttC5nnBQ,1939
|
1260
|
-
homeassistant-stubs/components/google_cloud/const.pyi,sha256=
|
1261
|
-
homeassistant-stubs/components/google_cloud/helpers.pyi,sha256=
|
1260
|
+
homeassistant-stubs/components/google_cloud/const.pyi,sha256=q2C8z3EzNHFVQAorZ7babbNZ68g-dKB-r17YsXF00Q0,423
|
1261
|
+
homeassistant-stubs/components/google_cloud/helpers.pyi,sha256=kBYYWMGmiJUiUOR5BzJE79ptsn81uKOIWqsm6xgV6J4,1211
|
1262
1262
|
homeassistant-stubs/components/google_cloud/stt.pyi,sha256=UJPsL2DpdR6YAqk-B04vZCjYMKLqVPhOY-ZEoXgSEV8,1910
|
1263
|
-
homeassistant-stubs/components/google_cloud/tts.pyi,sha256=
|
1263
|
+
homeassistant-stubs/components/google_cloud/tts.pyi,sha256=RUyBZXUweD-8ouTJ6xuPKPH88RM2freLGn5sohxjGV8,3193
|
1264
1264
|
homeassistant-stubs/components/google_photos/__init__.pyi,sha256=xWpdKUiFAD3YRiTRiEWxqNjrtse2bX6rXwdw9JbH8UE,58
|
1265
1265
|
homeassistant-stubs/components/google_photos/api.pyi,sha256=HWE-tLzWg3FaxtNkPb4agxwvQb75y-cNUTYTN-2beuI,708
|
1266
1266
|
homeassistant-stubs/components/google_photos/application_credentials.pyi,sha256=JXlOBRF6D3J99PPgPQIZuP1hKKawWLiCk0q26FDOyzI,432
|
@@ -2478,7 +2478,7 @@ homeassistant-stubs/components/private_ble_device/coordinator.pyi,sha256=P5ghq9h
|
|
2478
2478
|
homeassistant-stubs/components/private_ble_device/device_tracker.pyi,sha256=oDROPSj3vdBZ3U7oFtMyh66m30NKjJ6iQ0oY6pQ3Buw,1515
|
2479
2479
|
homeassistant-stubs/components/private_ble_device/entity.pyi,sha256=EeeUAjBErA5eIBntZzxszht1uST6EI-DGr-bNeiqjsQ,1206
|
2480
2480
|
homeassistant-stubs/components/private_ble_device/sensor.pyi,sha256=hVm0DOJ2JkjK6LJw5w8JiDrd0J980x6bC9zW3a2Mjp4,2327
|
2481
|
-
homeassistant-stubs/components/prometheus/__init__.pyi,sha256=
|
2481
|
+
homeassistant-stubs/components/prometheus/__init__.pyi,sha256=uKkgasiAFg4dMHiuFRflZw1WrHu5Cc2ufKMS-qspkr0,7166
|
2482
2482
|
homeassistant-stubs/components/proximity/__init__.pyi,sha256=TEumUQWHK-cfP5RSMIAlsFYIar8O96d-s6-MOltEDfs,894
|
2483
2483
|
homeassistant-stubs/components/proximity/config_flow.pyi,sha256=6MrTn9xZKIJCu-xPT6mC5K-V78kUFVS4OGeoXVUuxp0,1606
|
2484
2484
|
homeassistant-stubs/components/proximity/const.pyi,sha256=mHiHFx1eCuk6QyvMgQr1Y0OTsnWZ4HE-AwvBXg28aMY,595
|
@@ -3881,7 +3881,7 @@ homeassistant-stubs/util/yaml/dumper.pyi,sha256=uQjW0KuME-gXVWgYJLNLoRDwDzVhhhgg
|
|
3881
3881
|
homeassistant-stubs/util/yaml/input.pyi,sha256=wuxpKYTXZL4MujFhqjHnRLv4VPYY6QPYd-Zji-Lz9Mo,383
|
3882
3882
|
homeassistant-stubs/util/yaml/loader.pyi,sha256=FpRpxb-ZvfthDdO6Js0JqWtzlQfKDPP7nY5yOXp3604,3917
|
3883
3883
|
homeassistant-stubs/util/yaml/objects.pyi,sha256=YUlr0nf9ugzJT9J2YHaGV2fXu5opuyNvvHPqNW46m5I,707
|
3884
|
-
homeassistant_stubs-2025.1.
|
3885
|
-
homeassistant_stubs-2025.1.
|
3886
|
-
homeassistant_stubs-2025.1.
|
3887
|
-
homeassistant_stubs-2025.1.
|
3884
|
+
homeassistant_stubs-2025.1.0b4.dist-info/METADATA,sha256=InQdxlF59GGEOrFLzTHVUohyuPeFsVZCpFbZHZV_vN0,2956
|
3885
|
+
homeassistant_stubs-2025.1.0b4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
3886
|
+
homeassistant_stubs-2025.1.0b4.dist-info/licenses/LICENSE,sha256=_kHFjg-MAmJ-lXc7HiEjUzD3vZutVYKUVZZpAWcIuqo,1075
|
3887
|
+
homeassistant_stubs-2025.1.0b4.dist-info/RECORD,,
|
File without changes
|
File without changes
|