homeassistant-stubs 2024.7.0b3__py3-none-any.whl → 2024.7.0b5__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/db_schema.pyi +1 -0
- homeassistant-stubs/components/statistics/__init__.pyi +2 -1
- homeassistant-stubs/components/statistics/sensor.pyi +3 -1
- homeassistant-stubs/components/unifi/sensor.pyi +1 -1
- {homeassistant_stubs-2024.7.0b3.dist-info → homeassistant_stubs-2024.7.0b5.dist-info}/METADATA +2 -2
- {homeassistant_stubs-2024.7.0b3.dist-info → homeassistant_stubs-2024.7.0b5.dist-info}/RECORD +8 -8
- {homeassistant_stubs-2024.7.0b3.dist-info → homeassistant_stubs-2024.7.0b5.dist-info}/LICENSE +0 -0
- {homeassistant_stubs-2024.7.0b3.dist-info → homeassistant_stubs-2024.7.0b5.dist-info}/WHEEL +0 -0
@@ -1,7 +1,8 @@
|
|
1
1
|
from _typeshed import Incomplete
|
2
2
|
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
3
|
-
from homeassistant.const import Platform as Platform
|
3
|
+
from homeassistant.const import CONF_ENTITY_ID as CONF_ENTITY_ID, Platform as Platform
|
4
4
|
from homeassistant.core import HomeAssistant as HomeAssistant
|
5
|
+
from homeassistant.helpers.device import async_remove_stale_devices_links_keep_entity_device as async_remove_stale_devices_links_keep_entity_device
|
5
6
|
|
6
7
|
DOMAIN: str
|
7
8
|
PLATFORMS: Incomplete
|
@@ -7,6 +7,7 @@ from homeassistant.components.sensor import DEVICE_CLASS_STATE_CLASSES as DEVICE
|
|
7
7
|
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
8
8
|
from homeassistant.const import ATTR_DEVICE_CLASS as ATTR_DEVICE_CLASS, ATTR_UNIT_OF_MEASUREMENT as ATTR_UNIT_OF_MEASUREMENT, CONF_ENTITY_ID as CONF_ENTITY_ID, CONF_NAME as CONF_NAME, CONF_UNIQUE_ID as CONF_UNIQUE_ID, PERCENTAGE as PERCENTAGE, STATE_UNAVAILABLE as STATE_UNAVAILABLE, STATE_UNKNOWN as STATE_UNKNOWN
|
9
9
|
from homeassistant.core import CALLBACK_TYPE as CALLBACK_TYPE, Event as Event, EventStateChangedData as EventStateChangedData, HomeAssistant as HomeAssistant, State as State, callback as callback, split_entity_id as split_entity_id
|
10
|
+
from homeassistant.helpers.device import async_device_info_to_link_from_entity as async_device_info_to_link_from_entity
|
10
11
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
|
11
12
|
from homeassistant.helpers.event import async_track_point_in_utc_time as async_track_point_in_utc_time, async_track_state_change_event as async_track_state_change_event
|
12
13
|
from homeassistant.helpers.reload import async_setup_reload_service as async_setup_reload_service
|
@@ -80,6 +81,7 @@ class StatisticsSensor(SensorEntity):
|
|
80
81
|
_attr_name: Incomplete
|
81
82
|
_attr_unique_id: Incomplete
|
82
83
|
_source_entity_id: Incomplete
|
84
|
+
_attr_device_info: Incomplete
|
83
85
|
is_binary: Incomplete
|
84
86
|
_state_characteristic: Incomplete
|
85
87
|
_samples_max_buffer_size: Incomplete
|
@@ -95,7 +97,7 @@ class StatisticsSensor(SensorEntity):
|
|
95
97
|
attributes: Incomplete
|
96
98
|
_state_characteristic_fn: Incomplete
|
97
99
|
_update_listener: Incomplete
|
98
|
-
def __init__(self, source_entity_id: str, name: str, unique_id: str | None, state_characteristic: str, samples_max_buffer_size: int | None, samples_max_age: timedelta | None, samples_keep_last: bool, precision: int, percentile: int) -> None: ...
|
100
|
+
def __init__(self, hass: HomeAssistant, source_entity_id: str, name: str, unique_id: str | None, state_characteristic: str, samples_max_buffer_size: int | None, samples_max_age: timedelta | None, samples_keep_last: bool, precision: int, percentile: int) -> None: ...
|
99
101
|
def _async_stats_sensor_state_listener(self, event: Event[EventStateChangedData]) -> None: ...
|
100
102
|
def _async_stats_sensor_startup(self, _: HomeAssistant) -> None: ...
|
101
103
|
async def async_added_to_hass(self) -> None: ...
|
@@ -27,7 +27,7 @@ def async_client_uptime_value_fn(hub: UnifiHub, client: Client) -> datetime: ...
|
|
27
27
|
def async_wlan_client_value_fn(hub: UnifiHub, wlan: Wlan) -> int: ...
|
28
28
|
def async_device_clients_value_fn(hub: UnifiHub, device: Device) -> int: ...
|
29
29
|
def async_device_uptime_value_fn(hub: UnifiHub, device: Device) -> datetime | None: ...
|
30
|
-
def
|
30
|
+
def async_uptime_value_changed_fn(old: StateType | date | datetime | Decimal, new: datetime | float | str | None) -> bool: ...
|
31
31
|
def async_device_outlet_power_supported_fn(hub: UnifiHub, obj_id: str) -> bool: ...
|
32
32
|
def async_device_outlet_supported_fn(hub: UnifiHub, obj_id: str) -> bool: ...
|
33
33
|
def device_system_stats_supported_fn(stat_index: int, hub: UnifiHub, obj_id: str) -> bool: ...
|
{homeassistant_stubs-2024.7.0b3.dist-info → homeassistant_stubs-2024.7.0b5.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: homeassistant-stubs
|
3
|
-
Version: 2024.7.
|
3
|
+
Version: 2024.7.0b5
|
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.7.
|
19
|
+
Requires-Dist: homeassistant (==2024.7.0b5)
|
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
|
{homeassistant_stubs-2024.7.0b3.dist-info → homeassistant_stubs-2024.7.0b5.dist-info}/RECORD
RENAMED
@@ -2286,7 +2286,7 @@ homeassistant-stubs/components/recorder/auto_repairs/statistics/schema.pyi,sha25
|
|
2286
2286
|
homeassistant-stubs/components/recorder/backup.pyi,sha256=GsFwE8bwZazWZW7vHY7-9f4cwr6R1tPDGdjYA382Wmk,425
|
2287
2287
|
homeassistant-stubs/components/recorder/const.pyi,sha256=Mf6n-N4k0XGGvWWx8XT0VDY_q-8NnUitKIdB9ziO3tE,1602
|
2288
2288
|
homeassistant-stubs/components/recorder/core.pyi,sha256=nP1i10fJ-bD1mmJ1XpvO-5r7UzoKa06a25FP_PXeXYI,13014
|
2289
|
-
homeassistant-stubs/components/recorder/db_schema.pyi,sha256=
|
2289
|
+
homeassistant-stubs/components/recorder/db_schema.pyi,sha256=mOyszB85crE9yImQbLClyEEM-Dga5ob_8CcZT28NxUI,10055
|
2290
2290
|
homeassistant-stubs/components/recorder/entity_registry.pyi,sha256=KQkJUlsXDdEHhnzy2f58byStPFplR3BoANWzwPIhbEM,578
|
2291
2291
|
homeassistant-stubs/components/recorder/executor.pyi,sha256=jZUJLt2lp1TuQy9NnaK8zOaENozPLxbvsUzZQu9i0RQ,667
|
2292
2292
|
homeassistant-stubs/components/recorder/filters.pyi,sha256=l8qnsQC0mhUcCJauqv6IDLFT0_EV_iX2u6iz3yr0Lww,2703
|
@@ -2648,9 +2648,9 @@ homeassistant-stubs/components/starlink/entity.pyi,sha256=nAM7rjQUrcos6a5KxxfUeh
|
|
2648
2648
|
homeassistant-stubs/components/starlink/sensor.pyi,sha256=gFTj15wUE1MLF-9Sk3xgx3H-ghqGSTuF5IRCpefB--g,1867
|
2649
2649
|
homeassistant-stubs/components/starlink/switch.pyi,sha256=2znA7Z5twfN2t7NMJ_2a3_IpxgOxc7MfTpJFjAOVTp0,1758
|
2650
2650
|
homeassistant-stubs/components/starlink/time.pyi,sha256=s1CYzOSmCc9h1ZZ0VPrGsQuMSsNcc3ciKNLoAY4AxQ8,1908
|
2651
|
-
homeassistant-stubs/components/statistics/__init__.pyi,sha256=
|
2651
|
+
homeassistant-stubs/components/statistics/__init__.pyi,sha256=E5Gociw6eSObXr7d_pu_t4NDkjOnEel19qLjlNVlmb8,679
|
2652
2652
|
homeassistant-stubs/components/statistics/config_flow.pyi,sha256=OI8l3i9_jUwl5WDPwSy7KQXu4R6iSV0fj8Xs_RLBkyo,2043
|
2653
|
-
homeassistant-stubs/components/statistics/sensor.pyi,sha256=
|
2653
|
+
homeassistant-stubs/components/statistics/sensor.pyi,sha256=60ET0-w2Ksyvq2IKELr2VITpGPlx0Jb4il0rGfZXaO0,7973
|
2654
2654
|
homeassistant-stubs/components/steamist/__init__.pyi,sha256=tpDBkH4pb0Nz3sBlfcjIGL9cvBdMxXkcAFdsRVy9ysE,1330
|
2655
2655
|
homeassistant-stubs/components/steamist/config_flow.pyi,sha256=6e34HOgpOhcp2wHX09hT80TJJKKDj8wai8hJZSyCDE4,1931
|
2656
2656
|
homeassistant-stubs/components/steamist/const.pyi,sha256=8EEG9DIm7aFoxTSCwGpYVUq4UeGZWN9HuVf109732hM,148
|
@@ -2996,7 +2996,7 @@ homeassistant-stubs/components/unifi/hub/entity_loader.pyi,sha256=9hls72s7ET2Lq9
|
|
2996
2996
|
homeassistant-stubs/components/unifi/hub/hub.pyi,sha256=syjJxVmOpv_WQVeAbi4tI84EnW4N_Zx4eBhv5aXpP90,2002
|
2997
2997
|
homeassistant-stubs/components/unifi/hub/websocket.pyi,sha256=ah4FRwEgyW2bg_DNueSIcaq8WN0ieGv0tcY8K6zcDA8,1017
|
2998
2998
|
homeassistant-stubs/components/unifi/image.pyi,sha256=j14hByg0HxFHKmmicW-s-wZnaJIlOhgByJWia4xYIsg,2388
|
2999
|
-
homeassistant-stubs/components/unifi/sensor.pyi,sha256
|
2999
|
+
homeassistant-stubs/components/unifi/sensor.pyi,sha256=-Wv-T72fcYAIgoJ5ukkIDzx4kVW-h1wr52eDdCvAbsU,4489
|
3000
3000
|
homeassistant-stubs/components/unifi/services.pyi,sha256=qI0CBk86u0vJLN5H6Rn-wKkMy_7vbXYamVNLh8uQuIM,852
|
3001
3001
|
homeassistant-stubs/components/unifi/switch.pyi,sha256=dqJduHIoJkj-QCJyDCVkZMenFbf8cJo_VrAaKcNhdCM,4222
|
3002
3002
|
homeassistant-stubs/components/unifi/update.pyi,sha256=LjvJQrVAjxtw9gcZmZkoEtOZXN5zcXW9drulTVhRLeM,2594
|
@@ -3438,7 +3438,7 @@ homeassistant-stubs/util/yaml/dumper.pyi,sha256=uQjW0KuME-gXVWgYJLNLoRDwDzVhhhgg
|
|
3438
3438
|
homeassistant-stubs/util/yaml/input.pyi,sha256=wuxpKYTXZL4MujFhqjHnRLv4VPYY6QPYd-Zji-Lz9Mo,383
|
3439
3439
|
homeassistant-stubs/util/yaml/loader.pyi,sha256=RTT2312P0TB9bA-rj3xdQK_J6sqVQE4LBJozgLH3oao,4621
|
3440
3440
|
homeassistant-stubs/util/yaml/objects.pyi,sha256=YUlr0nf9ugzJT9J2YHaGV2fXu5opuyNvvHPqNW46m5I,707
|
3441
|
-
homeassistant_stubs-2024.7.
|
3442
|
-
homeassistant_stubs-2024.7.
|
3443
|
-
homeassistant_stubs-2024.7.
|
3444
|
-
homeassistant_stubs-2024.7.
|
3441
|
+
homeassistant_stubs-2024.7.0b5.dist-info/LICENSE,sha256=_kHFjg-MAmJ-lXc7HiEjUzD3vZutVYKUVZZpAWcIuqo,1075
|
3442
|
+
homeassistant_stubs-2024.7.0b5.dist-info/WHEEL,sha256=vVCvjcmxuUltf8cYhJ0sJMRDLr1XsPuxEId8YDzbyCY,88
|
3443
|
+
homeassistant_stubs-2024.7.0b5.dist-info/METADATA,sha256=2RXi2Xo-FFD-2J4P_NH6t6QDsT_0OPw4Yc6L5w6esnY,3015
|
3444
|
+
homeassistant_stubs-2024.7.0b5.dist-info/RECORD,,
|
{homeassistant_stubs-2024.7.0b3.dist-info → homeassistant_stubs-2024.7.0b5.dist-info}/LICENSE
RENAMED
File without changes
|
File without changes
|