homeassistant-stubs 2025.10.0b0__py3-none-any.whl → 2025.10.0b2__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.

Potentially problematic release.


This version of homeassistant-stubs might be problematic. Click here for more details.

@@ -1,5 +1,6 @@
1
1
  from .coordinator import AmazonConfigEntry as AmazonConfigEntry
2
2
  from .entity import AmazonEntity as AmazonEntity
3
+ from .utils import async_update_unique_id as async_update_unique_id
3
4
  from _typeshed import Incomplete
4
5
  from aioamazondevices.api import AmazonDevice as AmazonDevice
5
6
  from collections.abc import Callable as Callable
@@ -16,6 +17,7 @@ PARALLEL_UPDATES: int
16
17
  class AmazonBinarySensorEntityDescription(BinarySensorEntityDescription):
17
18
  is_on_fn: Callable[[AmazonDevice, str], bool]
18
19
  is_supported: Callable[[AmazonDevice, str], bool] = ...
20
+ is_available_fn: Callable[[AmazonDevice, str], bool] = ...
19
21
 
20
22
  BINARY_SENSORS: Final[Incomplete]
21
23
 
@@ -25,3 +27,5 @@ class AmazonBinarySensorEntity(AmazonEntity, BinarySensorEntity):
25
27
  entity_description: AmazonBinarySensorEntityDescription
26
28
  @property
27
29
  def is_on(self) -> bool: ...
30
+ @property
31
+ def available(self) -> bool: ...
@@ -16,6 +16,7 @@ PARALLEL_UPDATES: int
16
16
  @dataclass(frozen=True, kw_only=True)
17
17
  class AmazonSensorEntityDescription(SensorEntityDescription):
18
18
  native_unit_of_measurement_fn: Callable[[AmazonDevice, str], str] | None = ...
19
+ is_available_fn: Callable[[AmazonDevice, str], bool] = ...
19
20
 
20
21
  SENSORS: Final[Incomplete]
21
22
 
@@ -27,3 +28,5 @@ class AmazonSensorEntity(AmazonEntity, SensorEntity):
27
28
  def native_unit_of_measurement(self) -> str | None: ...
28
29
  @property
29
30
  def native_value(self) -> StateType: ...
31
+ @property
32
+ def available(self) -> bool: ...
@@ -1,6 +1,6 @@
1
1
  from .coordinator import AmazonConfigEntry as AmazonConfigEntry
2
2
  from .entity import AmazonEntity as AmazonEntity
3
- from .utils import alexa_api_call as alexa_api_call
3
+ from .utils import alexa_api_call as alexa_api_call, async_update_unique_id as async_update_unique_id
4
4
  from _typeshed import Incomplete
5
5
  from aioamazondevices.api import AmazonDevice as AmazonDevice
6
6
  from collections.abc import Callable as Callable
@@ -15,7 +15,7 @@ PARALLEL_UPDATES: int
15
15
  @dataclass(frozen=True, kw_only=True)
16
16
  class AmazonSwitchEntityDescription(SwitchEntityDescription):
17
17
  is_on_fn: Callable[[AmazonDevice], bool]
18
- subkey: str
18
+ is_available_fn: Callable[[AmazonDevice, str], bool] = ...
19
19
  method: str
20
20
 
21
21
  SWITCHES: Final[Incomplete]
@@ -30,3 +30,5 @@ class AmazonSwitchEntity(AmazonEntity, SwitchEntity):
30
30
  async def async_turn_off(self, **kwargs: Any) -> None: ...
31
31
  @property
32
32
  def is_on(self) -> bool: ...
33
+ @property
34
+ def available(self) -> bool: ...
@@ -1,7 +1,10 @@
1
- from .const import DOMAIN as DOMAIN
1
+ from .const import DOMAIN as DOMAIN, _LOGGER as _LOGGER
2
+ from .coordinator import AmazonDevicesCoordinator as AmazonDevicesCoordinator
2
3
  from .entity import AmazonEntity as AmazonEntity
3
4
  from collections.abc import Awaitable, Callable as Callable, Coroutine
5
+ from homeassistant.core import HomeAssistant as HomeAssistant
4
6
  from homeassistant.exceptions import HomeAssistantError as HomeAssistantError
5
7
  from typing import Any, Concatenate
6
8
 
7
9
  def alexa_api_call[_T: AmazonEntity, **_P](func: Callable[Concatenate[_T, _P], Awaitable[None]]) -> Callable[Concatenate[_T, _P], Coroutine[Any, Any, None]]: ...
10
+ async def async_update_unique_id(hass: HomeAssistant, coordinator: AmazonDevicesCoordinator, domain: str, old_key: str, new_key: str) -> None: ...
@@ -21,6 +21,7 @@ from typing import Any
21
21
 
22
22
  ERROR_REQUIRES_ENCRYPTION_KEY: str
23
23
  ERROR_INVALID_ENCRYPTION_KEY: str
24
+ ERROR_INVALID_PASSWORD_AUTH: str
24
25
  _LOGGER: Incomplete
25
26
  ZERO_NOISE_PSK: str
26
27
  DEFAULT_NAME: str
@@ -66,6 +66,7 @@ class ESPHomeManager:
66
66
  async def _on_connect(self) -> None: ...
67
67
  async def on_disconnect(self, expected_disconnect: bool) -> None: ...
68
68
  async def on_connect_error(self, err: Exception) -> None: ...
69
+ async def _start_reauth_and_disconnect(self) -> None: ...
69
70
  async def _handle_dynamic_encryption_key(self, device_info: EsphomeDeviceInfo) -> None: ...
70
71
  @callback
71
72
  def _async_handle_logging_changed(self, _event: Event) -> None: ...
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: homeassistant-stubs
3
- Version: 2025.10.0b0
3
+ Version: 2025.10.0b2
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.2
21
- Requires-Dist: homeassistant==2025.10.0b0
21
+ Requires-Dist: homeassistant==2025.10.0b2
22
22
  Description-Content-Type: text/markdown
23
23
 
24
24
  [![CI](https://github.com/KapJI/homeassistant-stubs/actions/workflows/ci.yaml/badge.svg)](https://github.com/KapJI/homeassistant-stubs/actions/workflows/ci.yaml)
@@ -230,17 +230,17 @@ homeassistant-stubs/components/alexa/resources.pyi,sha256=xMQBaxEGbaPEoshHfFP63Y
230
230
  homeassistant-stubs/components/alexa/smart_home.pyi,sha256=RmHUf67v2P6JgBBMf6YQ9qtbUVV-SrgWyW0TbhhjPtk,2615
231
231
  homeassistant-stubs/components/alexa/state_report.pyi,sha256=z6l9miD598LoKEdlMP2dQ-CtR5PYe3aZNTY4pxXWUvI,3567
232
232
  homeassistant-stubs/components/alexa_devices/__init__.pyi,sha256=Jsp7aJCK7AUufTXp8IcOROGeUwWuRbTDToZvmJaW-LQ,1041
233
- homeassistant-stubs/components/alexa_devices/binary_sensor.pyi,sha256=VPfaNQ6tpM8vLlOefGfdG5v6XrsLnH7TR8e71pm3A1c,1362
233
+ homeassistant-stubs/components/alexa_devices/binary_sensor.pyi,sha256=FJSCTHgpi2nmrzeZuW5orX5he_HeEL6-nGbzXhfN3p4,1544
234
234
  homeassistant-stubs/components/alexa_devices/config_flow.pyi,sha256=a7VQKF_45mfsJZwPaNUJe806sGTSsRWMJtFseuxnegs,1193
235
235
  homeassistant-stubs/components/alexa_devices/const.pyi,sha256=GhMOGYFBllOq4hNVAWMXsSMahHd6nhe87hIh0jFYQ9U,150
236
236
  homeassistant-stubs/components/alexa_devices/coordinator.pyi,sha256=cLxfRH6LHjygPLcP_ooVj7dcZ1OhY220vrVld_CsJ2I,1175
237
237
  homeassistant-stubs/components/alexa_devices/diagnostics.pyi,sha256=bRYiRMxTdgbGeSTQw0w0S91vwU2sCBuBNfHvyt_mgug,870
238
238
  homeassistant-stubs/components/alexa_devices/entity.pyi,sha256=1oxFqfyw52JjClztThBJdtXj2BeC3_KWt0YPhsgiHrQ,914
239
239
  homeassistant-stubs/components/alexa_devices/notify.pyi,sha256=JDU6BbYvy7NlK41ivzAJz0CDDJpr5M-2OJk858PK5M4,1391
240
- homeassistant-stubs/components/alexa_devices/sensor.pyi,sha256=PNo4r7dQ7lQtFEPbheI9mdZQ7XlheIV0mQ8zYvQ8Qhg,1473
240
+ homeassistant-stubs/components/alexa_devices/sensor.pyi,sha256=CT7ZUCRmM_UIZJ-AqL-i0WV2znUYuNzuL7PPXS2T69o,1587
241
241
  homeassistant-stubs/components/alexa_devices/services.pyi,sha256=vWmwhrzZApfI3kut_KaZ0_x-Rv9rdm5YjCUphhhFzvY,1101
242
- homeassistant-stubs/components/alexa_devices/switch.pyi,sha256=w3ciKjUJSg54EmohphEoFPczwTbMhK1cjszzo8Vh9mg,1411
243
- homeassistant-stubs/components/alexa_devices/utils.pyi,sha256=UU3T3fQ74zYah8pDCY6y4_Hy26UhwSPJaF9Kno-xLmk,433
242
+ homeassistant-stubs/components/alexa_devices/switch.pyi,sha256=zCfiXdTWTAZwyWDuWqEvf_O3aFTvJgUqvba9sOsc1aA,1559
243
+ homeassistant-stubs/components/alexa_devices/utils.pyi,sha256=uqLUIIFUjthIYtFwgZ_lRgRsQ8B89Dd8faRI1RLC7mQ,740
244
244
  homeassistant-stubs/components/alpha_vantage/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
245
245
  homeassistant-stubs/components/alpha_vantage/sensor.pyi,sha256=lOIgbkISKtkxyu3EjpM5U-Scxr95BYt2_fQcjPrFoiI,2057
246
246
  homeassistant-stubs/components/altruist/__init__.pyi,sha256=LW3DTatWSeke8R-9AYSMXuGc3LCpRpZ-ZCjr2PW0yvY,485
@@ -1141,7 +1141,7 @@ homeassistant-stubs/components/esphome/bluetooth.pyi,sha256=AziV-O6xagLD2nhVCl9a
1141
1141
  homeassistant-stubs/components/esphome/button.pyi,sha256=decDk3kgPGWfY6SjxA_VtUoDO97PMABv82cW_97p99U,900
1142
1142
  homeassistant-stubs/components/esphome/camera.pyi,sha256=A2JolDWddvUNu3Sm47-tYBnLZugEkkLV6kdPWPn7ZRE,1231
1143
1143
  homeassistant-stubs/components/esphome/climate.pyi,sha256=dK0m4QjREqrO8zxS-6odRk4-yG2fR-9WGv4r7eNp7fE,4480
1144
- homeassistant-stubs/components/esphome/config_flow.pyi,sha256=QC_rTbAaaGIsJACp2gohda4wx1Z_Z57tWe-M4WCk9Gg,6080
1144
+ homeassistant-stubs/components/esphome/config_flow.pyi,sha256=omxb4lh-T0Fb_X6y5DjOkf8eXNnOtDS_Z5Vjp8eBrsQ,6113
1145
1145
  homeassistant-stubs/components/esphome/const.pyi,sha256=SmRDaq573xJMQIll0QQOwtJp0grLjTn_JgrLBIvD5CM,478
1146
1146
  homeassistant-stubs/components/esphome/coordinator.pyi,sha256=-5E9bs445tfgDZxneOgOK_6eHu1bgCEbHM5wiUoRyT0,783
1147
1147
  homeassistant-stubs/components/esphome/cover.pyi,sha256=8w1a6SZD-XjRgGlz-YB7x1u9FgKNdPwg-P902JXqA4c,2178
@@ -1159,7 +1159,7 @@ homeassistant-stubs/components/esphome/fan.pyi,sha256=hc8ca_XTntmj-ZsPmGkzPdKtzJ
1159
1159
  homeassistant-stubs/components/esphome/ffmpeg_proxy.pyi,sha256=3VQoEBRJOM81C-J2OnhJSVkYvizTnQfvlfKNhH_ix8U,2553
1160
1160
  homeassistant-stubs/components/esphome/light.pyi,sha256=KDPN5H4z-B4nzKiv6H9pJBtBmc7r0Dtve8zo2-5A_lg,2802
1161
1161
  homeassistant-stubs/components/esphome/lock.pyi,sha256=oSSaMY4aULb9_ckM-_JVvuDmncfu4U9TyA5Aoh7eID8,1495
1162
- homeassistant-stubs/components/esphome/manager.pyi,sha256=T0r97H8YYdzban9pNME4O2FYOBQ9g-DxylllIAbpP7U,5818
1162
+ homeassistant-stubs/components/esphome/manager.pyi,sha256=AvwAnaQCOAeZMBAAbT92Wt6CVLdEnm9M712Vnxhl0eA,5880
1163
1163
  homeassistant-stubs/components/esphome/media_player.pyi,sha256=eDFPz-72pgpaQ-9HnLkJFUFkSn9vn5IbhmdjmqHxoCc,3050
1164
1164
  homeassistant-stubs/components/esphome/number.pyi,sha256=3hv7HZ7Q3JQ3dckk0tsRfNy6Amiddwu-0zAX68oymyg,1398
1165
1165
  homeassistant-stubs/components/esphome/repairs.pyi,sha256=My4X55PJjeBHdrd4sSR_IoExbYliJFSQyP7-LwPRDXo,1205
@@ -4447,7 +4447,7 @@ homeassistant-stubs/util/yaml/dumper.pyi,sha256=vaIsOJB6hkwj7GLyo3YCNZCTwVgvvODy
4447
4447
  homeassistant-stubs/util/yaml/input.pyi,sha256=j_ejvjaXDxeNYtA4hb9tNUPsQdi7wogbmTQXsqmt5xo,253
4448
4448
  homeassistant-stubs/util/yaml/loader.pyi,sha256=_HvI0rXv3kQRsSRV-VZGWVyGjD0SAzLkPfq0A3jksrs,850
4449
4449
  homeassistant-stubs/util/yaml/objects.pyi,sha256=Ynjx0JaWF3u82Pj8aXO-YeqrkzNO8t-Nn7G7rr_X-oI,206
4450
- homeassistant_stubs-2025.10.0b0.dist-info/METADATA,sha256=30BnQVIBWvvsdd0HCfNUt1n0dEAgHggiHeg9WlFrCVw,2954
4451
- homeassistant_stubs-2025.10.0b0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
4452
- homeassistant_stubs-2025.10.0b0.dist-info/licenses/LICENSE,sha256=_kHFjg-MAmJ-lXc7HiEjUzD3vZutVYKUVZZpAWcIuqo,1075
4453
- homeassistant_stubs-2025.10.0b0.dist-info/RECORD,,
4450
+ homeassistant_stubs-2025.10.0b2.dist-info/METADATA,sha256=iRKMorYPLxhE8KSPRPKLeikJGB4jYwsOZkEnDhoYajk,2954
4451
+ homeassistant_stubs-2025.10.0b2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
4452
+ homeassistant_stubs-2025.10.0b2.dist-info/licenses/LICENSE,sha256=_kHFjg-MAmJ-lXc7HiEjUzD3vZutVYKUVZZpAWcIuqo,1075
4453
+ homeassistant_stubs-2025.10.0b2.dist-info/RECORD,,