homeassistant-stubs 2024.5.3__py3-none-any.whl → 2024.5.5__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.
@@ -33,6 +33,7 @@ class SetStateAttributes(TypedDict, total=False):
33
33
  transition_time: int
34
34
  xy: tuple[float, float]
35
35
 
36
+ def update_color_state(group: Group, lights: list[Light], override: bool = False) -> None: ...
36
37
  async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...
37
38
 
38
39
  class DeconzBaseLight(DeconzDevice[_LightDeviceT], LightEntity):
@@ -16,6 +16,8 @@ class DuotecnoEntity(Entity):
16
16
  def __init__(self, unit: BaseUnit) -> None: ...
17
17
  async def async_added_to_hass(self) -> None: ...
18
18
  async def _on_update(self) -> None: ...
19
+ @property
20
+ def available(self) -> bool: ...
19
21
  _T = TypeVar('_T', bound='DuotecnoEntity')
20
22
  _P = ParamSpec('_P')
21
23
 
@@ -13,7 +13,7 @@ _LOGGER: Incomplete
13
13
 
14
14
  def get_usb_service_info(config_entry: ConfigEntry) -> usb.UsbServiceInfo: ...
15
15
  def get_hardware_variant(config_entry: ConfigEntry) -> HardwareVariant: ...
16
- def get_zha_device_path(config_entry: ConfigEntry) -> str: ...
16
+ def get_zha_device_path(config_entry: ConfigEntry) -> str | None: ...
17
17
  def get_otbr_addon_manager(hass: HomeAssistant) -> WaitingAddonManager: ...
18
18
  def get_zigbee_flasher_addon_manager(hass: HomeAssistant) -> WaitingAddonManager: ...
19
19
 
@@ -19,6 +19,8 @@ from homeassistant.util.logging import catch_log_exception as catch_log_exceptio
19
19
  from typing import Any
20
20
 
21
21
  _LOGGER: Incomplete
22
+ MIN_BUFFER_SIZE: int
23
+ PREFERRED_BUFFER_SIZE: int
22
24
  DISCOVERY_COOLDOWN: int
23
25
  INITIAL_SUBSCRIBE_COOLDOWN: float
24
26
  SUBSCRIBE_COOLDOWN: float
@@ -91,6 +93,7 @@ class MQTT:
91
93
  _pending_subscriptions: Incomplete
92
94
  _unsubscribe_debouncer: Incomplete
93
95
  _pending_unsubscribes: Incomplete
96
+ _socket_buffersize: Incomplete
94
97
  def __init__(self, hass: HomeAssistant, config_entry: ConfigEntry, conf: ConfigType) -> None: ...
95
98
  def _async_ha_started(self, _hass: HomeAssistant) -> None: ...
96
99
  async def _async_ha_stop(self, _event: Event) -> None: ...
@@ -103,6 +106,7 @@ class MQTT:
103
106
  async def _misc_loop(self) -> None: ...
104
107
  def _async_reader_callback(self, client: mqtt.Client) -> None: ...
105
108
  def _async_start_misc_loop(self) -> None: ...
109
+ def _increase_socket_buffer_size(self, sock: SocketType) -> None: ...
106
110
  def _on_socket_open(self, client: mqtt.Client, userdata: Any, sock: SocketType) -> None: ...
107
111
  def _async_on_socket_open(self, client: mqtt.Client, userdata: Any, sock: SocketType) -> None: ...
108
112
  def _async_on_socket_close(self, client: mqtt.Client, userdata: Any, sock: SocketType) -> None: ...
@@ -25,8 +25,9 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry, asyn
25
25
  class PlugwiseSelectEntity(PlugwiseEntity, SelectEntity):
26
26
  entity_description: PlugwiseSelectEntityDescription
27
27
  _attr_unique_id: Incomplete
28
- _attr_options: Incomplete
29
28
  def __init__(self, coordinator: PlugwiseDataUpdateCoordinator, device_id: str, entity_description: PlugwiseSelectEntityDescription) -> None: ...
30
29
  @property
31
30
  def current_option(self) -> str: ...
31
+ @property
32
+ def options(self) -> list[str]: ...
32
33
  async def async_select_option(self, option: str) -> None: ...
@@ -1,12 +1,14 @@
1
- from .const import ATTRIBUTION as ATTRIBUTION
1
+ from .const import ATTRIBUTION as ATTRIBUTION, DOMAIN as DOMAIN
2
2
  from .coordinator import PoolSenseDataUpdateCoordinator as PoolSenseDataUpdateCoordinator
3
3
  from _typeshed import Incomplete
4
+ from homeassistant.helpers.device_registry import DeviceInfo as DeviceInfo
4
5
  from homeassistant.helpers.entity import EntityDescription as EntityDescription
5
6
  from homeassistant.helpers.update_coordinator import CoordinatorEntity as CoordinatorEntity
6
7
 
7
8
  class PoolSenseEntity(CoordinatorEntity[PoolSenseDataUpdateCoordinator]):
8
9
  _attr_attribution = ATTRIBUTION
10
+ _attr_has_entity_name: bool
9
11
  entity_description: Incomplete
10
- _attr_name: Incomplete
11
12
  _attr_unique_id: Incomplete
13
+ _attr_device_info: Incomplete
12
14
  def __init__(self, coordinator: PoolSenseDataUpdateCoordinator, email: str, description: EntityDescription) -> None: ...
@@ -10,7 +10,6 @@ from homeassistant.const import EntityCategory as EntityCategory, Platform as Pl
10
10
  from homeassistant.core import callback as callback
11
11
  from homeassistant.helpers.device_registry import DeviceEntry as DeviceEntry
12
12
  from typing import Any
13
- from zwave_js_server.model.device_class import DeviceClassItem as DeviceClassItem
14
13
  from zwave_js_server.model.node import Node as ZwaveNode
15
14
  from zwave_js_server.model.value import ConfigurationValue, Value as ZwaveValue
16
15
 
@@ -95,4 +94,3 @@ def async_discover_node_values(node: ZwaveNode, device: DeviceEntry, discovered_
95
94
  def async_discover_single_value(value: ZwaveValue, device: DeviceEntry, discovered_value_ids: dict[str, set[str]]) -> Generator[ZwaveDiscoveryInfo, None, None]: ...
96
95
  def async_discover_single_configuration_value(value: ConfigurationValue) -> Generator[ZwaveDiscoveryInfo, None, None]: ...
97
96
  def check_value(value: ZwaveValue, schema: ZWaveValueDiscoverySchema) -> bool: ...
98
- def check_device_class(device_class: DeviceClassItem, required_value: set[str] | None) -> bool: ...
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: homeassistant-stubs
3
- Version: 2024.5.3
3
+ Version: 2024.5.5
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.5.3)
19
+ Requires-Dist: homeassistant (==2024.5.5)
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
@@ -618,7 +618,7 @@ homeassistant-stubs/components/deconz/hub/__init__.pyi,sha256=i0ejKUP20btjIQdAyc
618
618
  homeassistant-stubs/components/deconz/hub/api.pyi,sha256=U5j5PA64OuzFpQrfJc9_XUbnjQ4cFg-HiZv9IStoYHM,516
619
619
  homeassistant-stubs/components/deconz/hub/config.pyi,sha256=6QSJQNs6cQTykuvz9y_fAm3MeOWmUgjiJXiblj7Mhhc,977
620
620
  homeassistant-stubs/components/deconz/hub/hub.pyi,sha256=4m2D18p--RRoZsQly_TjED5Hv5agoAjIBVVTSeUX4Rg,2445
621
- homeassistant-stubs/components/deconz/light.pyi,sha256=8niJC5hS98msA86WqF5sRhEGJDQ9PNYhlHrNeVEMtBY,3398
621
+ homeassistant-stubs/components/deconz/light.pyi,sha256=v0BWfi4m2iaRtUVPs6x1EEpUGWM3AlTG19PbFUCrkU4,3493
622
622
  homeassistant-stubs/components/deconz/lock.pyi,sha256=yPocVjIpNK-CUdsM3gQ8AsWPd9omGUyMii79aKjiIzo,986
623
623
  homeassistant-stubs/components/deconz/logbook.pyi,sha256=1XS4iN6blO7cg_Kfshs-IKdN2lBsaGqQYqNtQiuI8C0,2603
624
624
  homeassistant-stubs/components/deconz/number.pyi,sha256=hnTnd_F8bkB1SF-EXcy4ITSlziavWrR-vfJvxEZt3RA,2438
@@ -779,7 +779,7 @@ homeassistant-stubs/components/duotecno/climate.pyi,sha256=5Md0KcEvrwAsrOyS34Mvu
779
779
  homeassistant-stubs/components/duotecno/config_flow.pyi,sha256=iogJgauOSf6NWDct0CJgCQg1X0brO_eFWK7SHjb2vCw,536
780
780
  homeassistant-stubs/components/duotecno/const.pyi,sha256=xKqGbNfghjJ6-slWRS0vQza1FRzVbXZsZJEkpajP4XM,45
781
781
  homeassistant-stubs/components/duotecno/cover.pyi,sha256=kKPFWVPtmfbpdJMMSfv-h6oorDbmCzDa_aFtGVXgmb8,1215
782
- homeassistant-stubs/components/duotecno/entity.pyi,sha256=tXo2mQ7ihm7OuLBZNKefRGiex_arXQb4K2SuJBt8pv8,974
782
+ homeassistant-stubs/components/duotecno/entity.pyi,sha256=gr_6OPbJuZe4nfyMYUIi9WIChPK-cU7-wiySKIdQsSk,1025
783
783
  homeassistant-stubs/components/duotecno/light.pyi,sha256=8xy_mP44Ii2xgoWINxVbbN2z0mtxJWbvbm1FA-eJAaE,1116
784
784
  homeassistant-stubs/components/duotecno/switch.pyi,sha256=z_jOp-p6ohOg-KgHP30qTFEMxuWjGwhcS4MFebNnRvk,909
785
785
  homeassistant-stubs/components/easyenergy/__init__.pyi,sha256=CY8TIoiBLFTiOKyNuxkkCMNoVxmE79eZVjNhgOZ3Wo8,848
@@ -1202,7 +1202,7 @@ homeassistant-stubs/components/homeassistant_sky_connect/__init__.pyi,sha256=J2R
1202
1202
  homeassistant-stubs/components/homeassistant_sky_connect/config_flow.pyi,sha256=5Vf-idh8KsSH2AfVRr26V2dmRk4rDpV4gE7urdrLUEw,5411
1203
1203
  homeassistant-stubs/components/homeassistant_sky_connect/const.pyi,sha256=jKspYLTvaHFFH1rmsUWGGum262k5VagcyXCNKwket-s,705
1204
1204
  homeassistant-stubs/components/homeassistant_sky_connect/hardware.pyi,sha256=i4YnoRKte_Lc3UWSQZCNjbmYDN-Af2_N_9lVJtoCZ8s,373
1205
- homeassistant-stubs/components/homeassistant_sky_connect/util.pyi,sha256=J6iXBSaWly5ojQvl0O_Ib-CxdMtklUsk_TYKwBcqPhA,1835
1205
+ homeassistant-stubs/components/homeassistant_sky_connect/util.pyi,sha256=WJ5G96gjEBjVx3_WZtKf_axK9bUR2SeRyV8770ahIlA,1842
1206
1206
  homeassistant-stubs/components/homeassistant_yellow/__init__.pyi,sha256=QX_nV7zZsbDtQhATAaSHTRcU-98TFTjn087lx2XMftE,948
1207
1207
  homeassistant-stubs/components/homeassistant_yellow/config_flow.pyi,sha256=s9fBt_LnWEGcu9gIigJUtkLil9yd9j3P995Qszzz0nM,2213
1208
1208
  homeassistant-stubs/components/homeassistant_yellow/const.pyi,sha256=uh1-HSPS0LlWAJPk67wiNgUA8yOPY-sZ8GUfx1Qa5Jk,98
@@ -1753,7 +1753,7 @@ homeassistant-stubs/components/mqtt/alarm_control_panel.pyi,sha256=GY_e5FcGWJkMu
1753
1753
  homeassistant-stubs/components/mqtt/binary_sensor.pyi,sha256=2KsKKklC8ZYrxBNnck6ptIt4LKV0dqaZuEiU8UBtZPs,3030
1754
1754
  homeassistant-stubs/components/mqtt/button.pyi,sha256=v0a_HI2SXDq9OrWYmGe_4QyHodedsvysMVCANer76uQ,1913
1755
1755
  homeassistant-stubs/components/mqtt/camera.pyi,sha256=ETti_q5ZP-98HP5oN9UF5tegTGjDzMsDdsitW20_OhA,2046
1756
- homeassistant-stubs/components/mqtt/client.pyi,sha256=OnBFERWdElyCFYNDT2j7Y2VlRGW8Ao8h05c_DgyqcLU,9245
1756
+ homeassistant-stubs/components/mqtt/client.pyi,sha256=Z4WHfdBCwiv1u3A1XfEgVoh9-iplx37AxlJeH_mNLQU,9402
1757
1757
  homeassistant-stubs/components/mqtt/climate.pyi,sha256=44wn21ev_J1C8H_gy76oX-rUu_6jZKb9PVL95IqedM4,8593
1758
1758
  homeassistant-stubs/components/mqtt/config.pyi,sha256=ZzcogEgaXfMFwZIYMPiIpTSMnuMKx6Xsvv30vbB8iXw,721
1759
1759
  homeassistant-stubs/components/mqtt/config_flow.pyi,sha256=v2BB9K_j8XM3zrjjSI6gjlFG9H7YoyGgdv9cThbZcV4,5410
@@ -2074,7 +2074,7 @@ homeassistant-stubs/components/plugwise/coordinator.pyi,sha256=ewBr2XuFeMY-7kPkx
2074
2074
  homeassistant-stubs/components/plugwise/diagnostics.pyi,sha256=PPD70LKD8oemWzW6ItJYuyEQBG0Q3Mbf96Ho3X_um4M,387
2075
2075
  homeassistant-stubs/components/plugwise/entity.pyi,sha256=2UB7k8B6_zRtgBGVPj7YjSLpRhzpsR2sqtWvjRM8zpk,1002
2076
2076
  homeassistant-stubs/components/plugwise/number.pyi,sha256=Pl2IpuYk6t71lViml6VredI_15T-affG4_WU1ilUNRg,2177
2077
- homeassistant-stubs/components/plugwise/select.pyi,sha256=C81lA69_7-HleU1QIC3uiImTxpIoD5ekmM6h-7X9tCM,1940
2077
+ homeassistant-stubs/components/plugwise/select.pyi,sha256=viWslhxxndB32Hl1R1CFoMmZWDDCpHP-aQGYOpIHAtg,1964
2078
2078
  homeassistant-stubs/components/plugwise/sensor.pyi,sha256=hwvOuH-s-YQqMTVI5UojnXJo3YXpdl_QOpNjoUUKvB8,2115
2079
2079
  homeassistant-stubs/components/plugwise/switch.pyi,sha256=nJYdSbOrWiCIUWhw2zDYB4J1YxYoqiStiqnyhAmnQhg,1835
2080
2080
  homeassistant-stubs/components/plugwise/util.pyi,sha256=ESoVurO28nOv-Prgmlhj1hesvlEORo5E-JEAJHnnSsc,533
@@ -2083,7 +2083,7 @@ homeassistant-stubs/components/poolsense/binary_sensor.pyi,sha256=cGJg_mUvbcgWV6
2083
2083
  homeassistant-stubs/components/poolsense/config_flow.pyi,sha256=xgVvvxjGb-e4_4tBh0IDd1KKp6UZ5QrQdk4oUWrEfos,584
2084
2084
  homeassistant-stubs/components/poolsense/const.pyi,sha256=LApbRjh9urlABUmBAdcgAD8qepdXLb5UMlv-4K--lrk,29
2085
2085
  homeassistant-stubs/components/poolsense/coordinator.pyi,sha256=0DMGe7Znga7WcLKAwN8WsVyd6Uh4J7PJMVB18hZLwlE,846
2086
- homeassistant-stubs/components/poolsense/entity.pyi,sha256=djnZq639jCtq3E34IfbaIOzkjsBKRdOMLMT4EWiHxRY,671
2086
+ homeassistant-stubs/components/poolsense/entity.pyi,sha256=bDFmKEu3_I9RPDkPeSoHXGm3HYKYnEIybGjI74TrlX8,803
2087
2087
  homeassistant-stubs/components/poolsense/sensor.pyi,sha256=9yOqy6xo261kbJ8YJoAGfsIv3hjpsQBZ-mqlsbwKBI0,1014
2088
2088
  homeassistant-stubs/components/powerwall/__init__.pyi,sha256=hGic5iv4DisEsWUA8iun_EWDaowMZ2fWx1sMyXsYzRY,2579
2089
2089
  homeassistant-stubs/components/powerwall/binary_sensor.pyi,sha256=IqVkGIOpdj_WuvqOniXs9JyzOhu7lL0Ai-bS2TK-HcU,1922
@@ -3155,7 +3155,7 @@ homeassistant-stubs/components/zwave_js/device_automation_helpers.pyi,sha256=qkt
3155
3155
  homeassistant-stubs/components/zwave_js/device_condition.pyi,sha256=3kPDHSFjwRyisrsxpx7QGhxQ6hjcojmxX7OmcCoeAM8,2271
3156
3156
  homeassistant-stubs/components/zwave_js/device_trigger.pyi,sha256=gIgMObSiVTEHCojQ29xuZRPV2zWkh1uhc5pmunE_0v4,3789
3157
3157
  homeassistant-stubs/components/zwave_js/diagnostics.pyi,sha256=LsCPyoFzukP1KOVwpQcLef5k9KKuW1tJHB7-RkkR74I,1796
3158
- homeassistant-stubs/components/zwave_js/discovery.pyi,sha256=9S5_XezJz-a4qRneUEoE2BD2r5euw1Wh2YfAgE7R6M0,5198
3158
+ homeassistant-stubs/components/zwave_js/discovery.pyi,sha256=BBdyPGiIhZU_X0nIYtSZjOhY-8pItIEIaCdRxb-B7oI,5016
3159
3159
  homeassistant-stubs/components/zwave_js/discovery_data_template.pyi,sha256=qG00VC29LVDxzKDXVpVkY1bwtBHkc1qQxSLe9NKjFKQ,7546
3160
3160
  homeassistant-stubs/components/zwave_js/entity.pyi,sha256=hcdZVo5q3ISpeOLKtnxoad1PgsoQ9xquXASC3agHNsg,2729
3161
3161
  homeassistant-stubs/components/zwave_js/event.pyi,sha256=Qs93rUDkOLYWMTKmCxem3Ub8KyOFN3MXqbnfUNH0rVg,1389
@@ -3322,7 +3322,7 @@ homeassistant-stubs/util/yaml/dumper.pyi,sha256=uQjW0KuME-gXVWgYJLNLoRDwDzVhhhgg
3322
3322
  homeassistant-stubs/util/yaml/input.pyi,sha256=wuxpKYTXZL4MujFhqjHnRLv4VPYY6QPYd-Zji-Lz9Mo,383
3323
3323
  homeassistant-stubs/util/yaml/loader.pyi,sha256=8rCANDOO3yTLdOqK3AZNmpv-dQD7JVKP1VKDhnEjK3Y,4239
3324
3324
  homeassistant-stubs/util/yaml/objects.pyi,sha256=YUlr0nf9ugzJT9J2YHaGV2fXu5opuyNvvHPqNW46m5I,707
3325
- homeassistant_stubs-2024.5.3.dist-info/LICENSE,sha256=_kHFjg-MAmJ-lXc7HiEjUzD3vZutVYKUVZZpAWcIuqo,1075
3326
- homeassistant_stubs-2024.5.3.dist-info/METADATA,sha256=_e9WFN2DzZoV_0ycnM0Ta3LZG5VeDZHvAMFcoVjHU-Y,3011
3327
- homeassistant_stubs-2024.5.3.dist-info/WHEEL,sha256=vVCvjcmxuUltf8cYhJ0sJMRDLr1XsPuxEId8YDzbyCY,88
3328
- homeassistant_stubs-2024.5.3.dist-info/RECORD,,
3325
+ homeassistant_stubs-2024.5.5.dist-info/WHEEL,sha256=vVCvjcmxuUltf8cYhJ0sJMRDLr1XsPuxEId8YDzbyCY,88
3326
+ homeassistant_stubs-2024.5.5.dist-info/LICENSE,sha256=_kHFjg-MAmJ-lXc7HiEjUzD3vZutVYKUVZZpAWcIuqo,1075
3327
+ homeassistant_stubs-2024.5.5.dist-info/METADATA,sha256=nf8q7gBzuUAijiaOu-Qk5nljveXggbimhpgHEoxbJYY,3011
3328
+ homeassistant_stubs-2024.5.5.dist-info/RECORD,,