homeassistant-stubs 2025.3.0b3__py3-none-any.whl → 2025.3.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.
@@ -31,6 +31,7 @@ def _has_timezone(*keys: Any) -> Callable[[dict[str, Any]], dict[str, Any]]: ...
31
31
  def _has_consistent_timezone(*keys: Any) -> Callable[[dict[str, Any]], dict[str, Any]]: ...
32
32
  def _as_local_timezone(*keys: Any) -> Callable[[dict[str, Any]], dict[str, Any]]: ...
33
33
  def _has_min_duration(start_key: str, end_key: str, min_duration: datetime.timedelta) -> Callable[[dict[str, Any]], dict[str, Any]]: ...
34
+ def _has_positive_interval(start_key: str, end_key: str, duration_key: str) -> Callable[[dict[str, Any]], dict[str, Any]]: ...
34
35
  def _has_same_type(*keys: Any) -> Callable[[dict[str, Any]], dict[str, Any]]: ...
35
36
  def _validate_rrule(value: Any) -> str: ...
36
37
  def _empty_as_none(value: str | None) -> str | None: ...
@@ -10,5 +10,6 @@ DEFAULT_NEW_CONFIG_ALLOW_ALLOW_SERVICE_CALLS: bool
10
10
  STABLE_BLE_VERSION_STR: str
11
11
  STABLE_BLE_VERSION: Incomplete
12
12
  PROJECT_URLS: Incomplete
13
+ STABLE_BLE_URL_VERSION: Incomplete
13
14
  DEFAULT_URL: Incomplete
14
15
  DATA_FFMPEG_PROXY: Incomplete
@@ -15,7 +15,6 @@ from typing import Any
15
15
 
16
16
  _LOGGER: Incomplete
17
17
  type HomeConnectConfigEntry = ConfigEntry[HomeConnectCoordinator]
18
- EVENT_STREAM_RECONNECT_DELAY: int
19
18
 
20
19
  @dataclass(frozen=True, kw_only=True)
21
20
  class HomeConnectApplianceData:
@@ -33,6 +32,7 @@ class HomeConnectCoordinator(DataUpdateCoordinator[dict[str, HomeConnectApplianc
33
32
  client: Incomplete
34
33
  _special_listeners: dict[CALLBACK_TYPE, tuple[CALLBACK_TYPE, tuple[EventKey, ...]]]
35
34
  device_registry: Incomplete
35
+ data: Incomplete
36
36
  def __init__(self, hass: HomeAssistant, config_entry: HomeConnectConfigEntry, client: HomeConnectClient) -> None: ...
37
37
  @cached_property
38
38
  def context_listeners(self) -> dict[tuple[str, EventKey], list[CALLBACK_TYPE]]: ...
@@ -5,6 +5,7 @@ from .utils import get_dict_from_home_connect_error as get_dict_from_home_connec
5
5
  from _typeshed import Incomplete
6
6
  from abc import abstractmethod
7
7
  from aiohomeconnect.model import OptionKey
8
+ from homeassistant.const import STATE_UNAVAILABLE as STATE_UNAVAILABLE
8
9
  from homeassistant.core import callback as callback
9
10
  from homeassistant.exceptions import HomeAssistantError as HomeAssistantError
10
11
  from homeassistant.helpers.device_registry import DeviceInfo as DeviceInfo
@@ -14,9 +14,11 @@ from pyHomee.model import HomeeAttribute as HomeeAttribute, HomeeNode as HomeeNo
14
14
 
15
15
  def get_open_close_value(attribute: HomeeAttribute) -> str | None: ...
16
16
  def get_window_value(attribute: HomeeAttribute) -> str | None: ...
17
+ def get_brightness_device_class(attribute: HomeeAttribute, device_class: SensorDeviceClass | None) -> SensorDeviceClass | None: ...
17
18
 
18
19
  @dataclass(frozen=True, kw_only=True)
19
20
  class HomeeSensorEntityDescription(SensorEntityDescription):
21
+ device_class_fn: Callable[[HomeeAttribute, SensorDeviceClass | None], SensorDeviceClass | None] = ...
20
22
  value_fn: Callable[[HomeeAttribute], str | float | None] = ...
21
23
  native_unit_of_measurement_fn: Callable[[str], str | None] = ...
22
24
 
@@ -34,6 +36,7 @@ class HomeeSensor(HomeeEntity, SensorEntity):
34
36
  entity_description: HomeeSensorEntityDescription
35
37
  _attr_translation_key: Incomplete
36
38
  _attr_translation_placeholders: Incomplete
39
+ _attr_device_class: Incomplete
37
40
  def __init__(self, attribute: HomeeAttribute, entry: HomeeConfigEntry, description: HomeeSensorEntityDescription) -> None: ...
38
41
  @property
39
42
  def native_value(self) -> float | str | None: ...
@@ -1,5 +1,5 @@
1
1
  import asyncio
2
- from .actions import register_actions as register_actions
2
+ from .actions import get_music_assistant_client as get_music_assistant_client, register_actions as register_actions
3
3
  from .const import DOMAIN as DOMAIN, LOGGER as LOGGER
4
4
  from _typeshed import Incomplete
5
5
  from dataclasses import dataclass
@@ -7,6 +7,7 @@ from homeassistant.config_entries import ConfigEntry as ConfigEntry, ConfigEntry
7
7
  from homeassistant.const import CONF_URL as CONF_URL, EVENT_HOMEASSISTANT_STOP as EVENT_HOMEASSISTANT_STOP, Platform as Platform
8
8
  from homeassistant.core import Event as Event, HomeAssistant as HomeAssistant
9
9
  from homeassistant.exceptions import ConfigEntryNotReady as ConfigEntryNotReady
10
+ from homeassistant.helpers import device_registry as dr
10
11
  from homeassistant.helpers.aiohttp_client import async_get_clientsession as async_get_clientsession
11
12
  from homeassistant.helpers.issue_registry import IssueSeverity as IssueSeverity, async_create_issue as async_create_issue, async_delete_issue as async_delete_issue
12
13
  from homeassistant.helpers.typing import ConfigType as ConfigType
@@ -28,3 +29,4 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: ...
28
29
  async def async_setup_entry(hass: HomeAssistant, entry: MusicAssistantConfigEntry) -> bool: ...
29
30
  async def _client_listen(hass: HomeAssistant, entry: ConfigEntry, mass: MusicAssistantClient, init_ready: asyncio.Event) -> None: ...
30
31
  async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: ...
32
+ async def async_remove_config_entry_device(hass: HomeAssistant, config_entry: ConfigEntry, device_entry: dr.DeviceEntry) -> bool: ...
@@ -11,6 +11,8 @@ from homeassistant.core import HomeAssistant as HomeAssistant
11
11
  from homeassistant.exceptions import HomeAssistantError as HomeAssistantError
12
12
  from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback as AddConfigEntryEntitiesCallback
13
13
 
14
+ _LOGGER: Incomplete
15
+
14
16
  async def async_setup_entry(hass: HomeAssistant, config_entry: RoborockConfigEntry, async_add_entities: AddConfigEntryEntitiesCallback) -> None: ...
15
17
 
16
18
  class RoborockMap(RoborockCoordinatedEntityV1, ImageEntity):
@@ -18,3 +18,5 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: ..
18
18
  async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: ...
19
19
  @callback
20
20
  def remove_stale_devices(hass: HomeAssistant, config_entry: ConfigEntry, devices: list[Device]) -> None: ...
21
+ async def async_migrate_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> bool: ...
22
+ def migrate_config_entry_and_identifiers(hass: HomeAssistant, config_entry: ConfigEntry) -> None: ...
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: homeassistant-stubs
3
- Version: 2025.3.0b3
3
+ Version: 2025.3.0b5
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.13
21
- Requires-Dist: homeassistant==2025.3.0b3
21
+ Requires-Dist: homeassistant==2025.3.0b5
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)
@@ -571,7 +571,7 @@ homeassistant-stubs/components/button/__init__.pyi,sha256=8bR7hQfeb0yh8g1t4hFsH8
571
571
  homeassistant-stubs/components/button/const.pyi,sha256=LRNZ2Epck8UjrpaKeoTUYJQMaBRd5JevVjtLKTBC62Q,31
572
572
  homeassistant-stubs/components/button/device_action.pyi,sha256=KF3s5UTCq9Wb_qsMLwUJQFLIsi_2Ju2ZHDaYlS1v-QA,983
573
573
  homeassistant-stubs/components/button/device_trigger.pyi,sha256=VAUodVs-6EBVLz2ZuUPogWlAE1gfTTViaDC3M5P6FxI,931
574
- homeassistant-stubs/components/calendar/__init__.pyi,sha256=k2MvVx2UNpsoD4QauMwMUSkDCJyNHvrscdLiqXEstSg,7146
574
+ homeassistant-stubs/components/calendar/__init__.pyi,sha256=kKxcCbg6vWry2R-VpLv_ay1EeNvoEM2Ew3y4L1MbSGk,7273
575
575
  homeassistant-stubs/components/calendar/const.pyi,sha256=80-e2pGl6tGLaHbzuuCaUTWJsry1a9RFp3fVV1GL-Jo,861
576
576
  homeassistant-stubs/components/calendar/trigger.pyi,sha256=URYZ7q-1hJhC1sTyRQ5BpISOx01QnLkL428qAFLsEtU,3112
577
577
  homeassistant-stubs/components/cambridge_audio/__init__.pyi,sha256=QhkDXkQbhrYxpk88G9aJriKbwghCOU1njLjfnm_JhpY,894
@@ -1039,7 +1039,7 @@ homeassistant-stubs/components/esphome/button.pyi,sha256=pR-hgw_gTCTj0QGScNeidlD
1039
1039
  homeassistant-stubs/components/esphome/camera.pyi,sha256=4_R1vVynz4w80pof0K4fSWgNuG6RjUM9LBxJ3xO1iOg,1208
1040
1040
  homeassistant-stubs/components/esphome/climate.pyi,sha256=MyHotZ1Dy5KCUTzyYbxQDtFcHryuZ8KxuWnlsWUUbiU,4336
1041
1041
  homeassistant-stubs/components/esphome/config_flow.pyi,sha256=ttfZjpHBwxrNF0sUAurIf5HIOwxeGHJUf0T2PyPVjeE,4034
1042
- homeassistant-stubs/components/esphome/const.pyi,sha256=T_sVqcWtoMgj1DM5PPdyQ0t4CQFmqmO9TgE1uQnZfIs,366
1042
+ homeassistant-stubs/components/esphome/const.pyi,sha256=YbwuawBrTPYvttU04Mg3jpv1I0fdEcivTBhFU7YCIV8,401
1043
1043
  homeassistant-stubs/components/esphome/coordinator.pyi,sha256=FyZqV9c1SmpjmldlanJpDOGKqbH3cOiW4b0d7zD6K5E,678
1044
1044
  homeassistant-stubs/components/esphome/cover.pyi,sha256=uoHLdnLEb6Fd_nEjgtrV4qa5oyCey7RjX2RUbVkfEZc,2155
1045
1045
  homeassistant-stubs/components/esphome/dashboard.pyi,sha256=LRI74hmOE7sXgqalhx9YjZzzf3fBRjEdaY6gg6Lw0DQ,1732
@@ -1414,9 +1414,9 @@ homeassistant-stubs/components/home_connect/button.pyi,sha256=za8DHahnqmmUj1PaKj
1414
1414
  homeassistant-stubs/components/home_connect/common.pyi,sha256=DdXLnrGG35ZIj1RKm0hnwJ8mx5x0Id1bRkrqF5V6j5Q,1821
1415
1415
  homeassistant-stubs/components/home_connect/config_flow.pyi,sha256=ByiAF8LD3ej3wG1wcxEFwqLJa0YJsRHb2W6cLdNUUiU,790
1416
1416
  homeassistant-stubs/components/home_connect/const.pyi,sha256=8bxsgBaBFnRzEvhtS4V-2V-WX30OmQ99UiXT1yTcu6M,2057
1417
- homeassistant-stubs/components/home_connect/coordinator.pyi,sha256=3_nSn5xSBnUXtNK0oLWnV4ReZKae4pzMz3hqSQhnSAw,3239
1417
+ homeassistant-stubs/components/home_connect/coordinator.pyi,sha256=mptoexJ8K0b6DO1a6mm_kOQyLg07DJRqNDlK2wYxpLU,3226
1418
1418
  homeassistant-stubs/components/home_connect/diagnostics.pyi,sha256=xd5stDFXPm86S-CJNctSEzLbByNTM253HDD34lifBHI,773
1419
- homeassistant-stubs/components/home_connect/entity.pyi,sha256=oKD9Mtb1uP4WJHo5CRYLdt8dLBpTTzeKhvJeZnVhY4k,1753
1419
+ homeassistant-stubs/components/home_connect/entity.pyi,sha256=XAhOkMF6D5u5ucAN2QVZdxcH_VuAs2SVvidaFHpRTwU,1824
1420
1420
  homeassistant-stubs/components/home_connect/light.pyi,sha256=aUO_O9-KVDBXEPzhBHURwBXfzcEdUIGecxu_x07hVTE,2791
1421
1421
  homeassistant-stubs/components/home_connect/number.pyi,sha256=eFe1R2KL9nX0VVDKNB8DAZ-7n8kar9qk85mImeNXZjc,2712
1422
1422
  homeassistant-stubs/components/home_connect/select.pyi,sha256=2zDBcWJ_K3g9NuW1jNy3heYSXDLfQ1p2b3jvEE3oEFc,5172
@@ -1470,7 +1470,7 @@ homeassistant-stubs/components/homee/entity.pyi,sha256=J1Ptb-ZhPyOWORzsI3DKrbK8W
1470
1470
  homeassistant-stubs/components/homee/helpers.pyi,sha256=UbrbjMWJKHCmDOqc_OJ3oUonExbkQ1UhYOdtmAO3pzM,160
1471
1471
  homeassistant-stubs/components/homee/light.pyi,sha256=4L7OW3FwGvZTyPTWht0RmeFNR3K9Mh64mpklTwedfIE,2510
1472
1472
  homeassistant-stubs/components/homee/number.pyi,sha256=wBRbtElOp2T_oK6w16C9tll-r-YdSYK1yz4p-5CFo-8,1424
1473
- homeassistant-stubs/components/homee/sensor.pyi,sha256=qCHJva5bwFo9aQXH4Dk38zzchCbAyzxl4u1-rv2tz44,2726
1473
+ homeassistant-stubs/components/homee/sensor.pyi,sha256=6ORhnbXEsEgmbBqRpSFX24ZrGcRZPaXjesH9uGpNDKs,2999
1474
1474
  homeassistant-stubs/components/homee/switch.pyi,sha256=f1V-ld9Ve1jZzAhZAo5z6FWHERYnnRpMrmo4NdDVgow,1931
1475
1475
  homeassistant-stubs/components/homee/valve.pyi,sha256=PCzNaMmu9rJn8Pyj0Ys11CjM6c5EZOy-SH7qdcMmWhs,1343
1476
1476
  homeassistant-stubs/components/homekit/__init__.pyi,sha256=UQzSUJZV4iGo0NsJp_CqMiiVISBM_HYRRjOYIl1V0Jc,10747
@@ -2245,7 +2245,7 @@ homeassistant-stubs/components/mqtt/light/schema.pyi,sha256=uWMGNFfSJQ7x4bYFxOVL
2245
2245
  homeassistant-stubs/components/mqtt/light/schema_basic.pyi,sha256=SRHNft9C92nFbDkbDkKHG0YHqsX9csOJXDesGfe2ECs,7021
2246
2246
  homeassistant-stubs/components/mqtt/light/schema_json.pyi,sha256=pJE78Nxv5jQRIyimf9GBEmziHv0jpay3fS0eqOykUlI,4724
2247
2247
  homeassistant-stubs/components/mqtt/light/schema_template.pyi,sha256=JfZ9G9eXTQCOS6D2AciIyrnQFLDEn-yWKsP6CJAuN6k,3918
2248
- homeassistant-stubs/components/music_assistant/__init__.pyi,sha256=Sqq3KX9AEDlIpPEFep5jY6SOPv7-GVtBkvG8NWc8eSQ,1697
2248
+ homeassistant-stubs/components/music_assistant/__init__.pyi,sha256=ZpNo96CqBU-KbvnetFYxK85m5jkHhSbD-rbfeTNqZmA,1945
2249
2249
  homeassistant-stubs/components/music_assistant/actions.pyi,sha256=NHEKTK-bOD54f7FDOPh_PnFinvXrHsfN26QNDANryds,2038
2250
2250
  homeassistant-stubs/components/music_assistant/config_flow.pyi,sha256=0Ocyn_KzD_tWkm6B5PI7zjzI2O34uc1YfwalOqKdZ8c,1210
2251
2251
  homeassistant-stubs/components/music_assistant/const.pyi,sha256=AuuFGZtZo5YjZJU3HLfkJULV0f7SeppY90T_liCC-m8,1266
@@ -2928,7 +2928,7 @@ homeassistant-stubs/components/roborock/const.pyi,sha256=SAstjD3OGuxxKmVH-bRpRwT
2928
2928
  homeassistant-stubs/components/roborock/coordinator.pyi,sha256=wrmdRlgZOhvBtdLqp30zhBM2I_6FRvMVsEdqJwqvuV4,4095
2929
2929
  homeassistant-stubs/components/roborock/diagnostics.pyi,sha256=-3WvDcLI0Qv0p6P9R8eSQZtgFZll5d9gKTEDBx6RmEA,522
2930
2930
  homeassistant-stubs/components/roborock/entity.pyi,sha256=O5kGsR8u9oDJJD4XrGeIz_KvGzToTzqXZHZtW--EFQo,3083
2931
- homeassistant-stubs/components/roborock/image.pyi,sha256=3f6Cj5pxnGNhiVlctI2H1Y8T5rlRZGNO6cTj2TDGxM4,2013
2931
+ homeassistant-stubs/components/roborock/image.pyi,sha256=qH5oa9LOKNWg84P7IkPSYlR_wtiHFXyqTgE5VFSynOc,2034
2932
2932
  homeassistant-stubs/components/roborock/models.pyi,sha256=JafSkeURg1toz6HiSKYY2U68yeX93xxTccWNIy_7WRo,700
2933
2933
  homeassistant-stubs/components/roborock/number.pyi,sha256=_WIhENoXQxL2JPvUH3kQnPLUXRxWsL2cN7jpsA6TN-c,1809
2934
2934
  homeassistant-stubs/components/roborock/roborock_storage.pyi,sha256=FsdJgkm0Nut_y3RSlYjNU0MRxRXKJ0sNjStE9AMecjk,946
@@ -3542,7 +3542,7 @@ homeassistant-stubs/components/tractive/diagnostics.pyi,sha256=5ptVNUawOfw2KuGs6
3542
3542
  homeassistant-stubs/components/tractive/entity.pyi,sha256=0YiGkyy3yMBGcYUpcJthCXx6Y1kcBRMvQgfLyVyoU34,1054
3543
3543
  homeassistant-stubs/components/tractive/sensor.pyi,sha256=EuhV1KJeyW8xFml_UND-7EDVGhIFtD4D7e5L-ZTYMJg,2322
3544
3544
  homeassistant-stubs/components/tractive/switch.pyi,sha256=UI4Q-uLoqWZzmpAvuMg2VnffJJFtszhXYRcu9UkKaf8,2046
3545
- homeassistant-stubs/components/tradfri/__init__.pyi,sha256=A4b7xTUlQkSPTeyof4Em07LthP6uiCphCkgzKXy5ddQ,1436
3545
+ homeassistant-stubs/components/tradfri/__init__.pyi,sha256=59izwUdciToHIP64YhmKxE8uTTANT7Xaz_YyFNrsvF0,1629
3546
3546
  homeassistant-stubs/components/tradfri/config_flow.pyi,sha256=URutEsGK-J98lpGDHo4t3y2FOQCXRNnQZDQ63jp2gL8,1398
3547
3547
  homeassistant-stubs/components/tradfri/const.pyi,sha256=rfCBf7j9UwiaXEKUgILSqKPQIx5rUpRzawztNAY3dtk,184
3548
3548
  homeassistant-stubs/components/tradfri/coordinator.pyi,sha256=D8vcGZfq4R8dD8TwQEsgDj1yUOnPPNv5qg7e5X-WjPA,1256
@@ -4080,7 +4080,7 @@ homeassistant-stubs/util/yaml/dumper.pyi,sha256=uQjW0KuME-gXVWgYJLNLoRDwDzVhhhgg
4080
4080
  homeassistant-stubs/util/yaml/input.pyi,sha256=wuxpKYTXZL4MujFhqjHnRLv4VPYY6QPYd-Zji-Lz9Mo,383
4081
4081
  homeassistant-stubs/util/yaml/loader.pyi,sha256=9MJS3AZNCemqAEU41KVJox1f16OceP64SNXE1-Z37kU,4117
4082
4082
  homeassistant-stubs/util/yaml/objects.pyi,sha256=EmJiT8WnVUHa5dkbYzXtWzu5mhO1YG5bBnEAIF0XLAU,665
4083
- homeassistant_stubs-2025.3.0b3.dist-info/METADATA,sha256=mIl6eoRegbK7HK7XF9_iQqYotRSQMHXL9v-n9mYmd28,2956
4084
- homeassistant_stubs-2025.3.0b3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
4085
- homeassistant_stubs-2025.3.0b3.dist-info/licenses/LICENSE,sha256=_kHFjg-MAmJ-lXc7HiEjUzD3vZutVYKUVZZpAWcIuqo,1075
4086
- homeassistant_stubs-2025.3.0b3.dist-info/RECORD,,
4083
+ homeassistant_stubs-2025.3.0b5.dist-info/METADATA,sha256=kGE_HBu5v5b6r_iMx1jyRfz0ufwo6MVrRPbBY7TUuIo,2956
4084
+ homeassistant_stubs-2025.3.0b5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
4085
+ homeassistant_stubs-2025.3.0b5.dist-info/licenses/LICENSE,sha256=_kHFjg-MAmJ-lXc7HiEjUzD3vZutVYKUVZZpAWcIuqo,1075
4086
+ homeassistant_stubs-2025.3.0b5.dist-info/RECORD,,