homeassistant-stubs 2024.9.0__py3-none-any.whl → 2024.9.0b0__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.
@@ -6,7 +6,6 @@ from homeassistant.const import CONF_PASSWORD as CONF_PASSWORD, CONF_REGION as C
6
6
  from homeassistant.core import HomeAssistant as HomeAssistant
7
7
  from homeassistant.exceptions import ConfigEntryAuthFailed as ConfigEntryAuthFailed
8
8
  from homeassistant.helpers.update_coordinator import DataUpdateCoordinator as DataUpdateCoordinator, UpdateFailed as UpdateFailed
9
- from homeassistant.util.ssl import get_default_context as get_default_context
10
9
 
11
10
  _LOGGER: Incomplete
12
11
 
@@ -1,17 +1,13 @@
1
1
  from .const import PLATFORMS as PLATFORMS
2
- from .utils import async_get_client_session as async_get_client_session
3
- from aiohttp import ClientSession as ClientSession
4
- from dataclasses import dataclass
5
2
  from homeassistant.config_entries import ConfigEntry as ConfigEntry
6
3
  from homeassistant.const import CONF_HOST as CONF_HOST
7
4
  from homeassistant.core import HomeAssistant as HomeAssistant
8
5
  from homeassistant.exceptions import ConfigEntryNotReady as ConfigEntryNotReady
6
+ from homeassistant.helpers.aiohttp_client import async_get_clientsession as async_get_clientsession
9
7
  from linkplay.bridge import LinkPlayBridge as LinkPlayBridge
10
8
 
11
- @dataclass
12
9
  class LinkPlayData:
13
10
  bridge: LinkPlayBridge
14
- def __init__(self, bridge) -> None: ...
15
11
  LinkPlayConfigEntry = ConfigEntry[LinkPlayData]
16
12
 
17
13
  async def async_setup_entry(hass: HomeAssistant, entry: LinkPlayConfigEntry) -> bool: ...
@@ -1,15 +1,11 @@
1
1
  from .const import DOMAIN as DOMAIN
2
- from .utils import async_get_client_session as async_get_client_session
3
2
  from _typeshed import Incomplete
4
- from aiohttp import ClientSession as ClientSession
5
3
  from homeassistant.components import zeroconf as zeroconf
6
4
  from homeassistant.config_entries import ConfigFlow as ConfigFlow, ConfigFlowResult as ConfigFlowResult
7
5
  from homeassistant.const import CONF_HOST as CONF_HOST, CONF_MODEL as CONF_MODEL
8
- from linkplay.bridge import LinkPlayBridge as LinkPlayBridge
6
+ from homeassistant.helpers.aiohttp_client import async_get_clientsession as async_get_clientsession
9
7
  from typing import Any
10
8
 
11
- _LOGGER: Incomplete
12
-
13
9
  class LinkPlayConfigFlow(ConfigFlow, domain=DOMAIN):
14
10
  data: Incomplete
15
11
  def __init__(self) -> None: ...
@@ -3,4 +3,3 @@ from homeassistant.const import Platform as Platform
3
3
 
4
4
  DOMAIN: str
5
5
  PLATFORMS: Incomplete
6
- CONF_SESSION: str
@@ -1,7 +1,3 @@
1
- from .const import CONF_SESSION as CONF_SESSION, DOMAIN as DOMAIN
2
- from aiohttp import ClientSession as ClientSession
3
- from homeassistant.const import EVENT_HOMEASSISTANT_CLOSE as EVENT_HOMEASSISTANT_CLOSE
4
- from homeassistant.core import Event as Event, HomeAssistant as HomeAssistant, callback as callback
5
1
  from typing import Final
6
2
 
7
3
  MANUFACTURER_ARTSOUND: Final[str]
@@ -21,4 +17,3 @@ MODELS_IEAST_AUDIOCAST_M5: Final[str]
21
17
  MODELS_GENERIC: Final[str]
22
18
 
23
19
  def get_info_from_project(project: str) -> tuple[str, str]: ...
24
- async def async_get_client_session(hass: HomeAssistant) -> ClientSession: ...
@@ -10,7 +10,6 @@ from collections.abc import Awaitable, Callable as Callable
10
10
  from google_nest_sdm.device import Device as Device
11
11
  from google_nest_sdm.event import EventMessage as EventMessage
12
12
  from google_nest_sdm.event_media import Media as Media
13
- from google_nest_sdm.traits import TraitType
14
13
  from homeassistant.auth.permissions.const import POLICY_READ as POLICY_READ
15
14
  from homeassistant.components.camera import Image as Image, img_util as img_util
16
15
  from homeassistant.components.http import KEY_HASS_USER as KEY_HASS_USER
@@ -38,7 +37,7 @@ class SignalUpdateCallback:
38
37
  _config_entry_id: Incomplete
39
38
  def __init__(self, hass: HomeAssistant, config_reload_cb: Callable[[], Awaitable[None]], config_entry_id: str) -> None: ...
40
39
  async def async_handle_event(self, event_message: EventMessage) -> None: ...
41
- def _supported_traits(self, device_id: str) -> list[TraitType]: ...
40
+ def _supports_clip(self, device_id: str) -> bool: ...
42
41
 
43
42
  async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: ...
44
43
  async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: ...
@@ -8,7 +8,7 @@ from homeassistant.components.websocket_api import messages as messages
8
8
  from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback, valid_entity_id as valid_entity_id
9
9
  from homeassistant.exceptions import HomeAssistantError as HomeAssistantError
10
10
  from homeassistant.helpers.json import json_bytes as json_bytes
11
- from homeassistant.util.unit_conversion import ConductivityConverter as ConductivityConverter, DataRateConverter as DataRateConverter, DistanceConverter as DistanceConverter, DurationConverter as DurationConverter, ElectricCurrentConverter as ElectricCurrentConverter, ElectricPotentialConverter as ElectricPotentialConverter, EnergyConverter as EnergyConverter, InformationConverter as InformationConverter, MassConverter as MassConverter, PowerConverter as PowerConverter, PressureConverter as PressureConverter, SpeedConverter as SpeedConverter, TemperatureConverter as TemperatureConverter, UnitlessRatioConverter as UnitlessRatioConverter, VolumeConverter as VolumeConverter, VolumeFlowRateConverter as VolumeFlowRateConverter
11
+ from homeassistant.util.unit_conversion import DataRateConverter as DataRateConverter, DistanceConverter as DistanceConverter, DurationConverter as DurationConverter, ElectricCurrentConverter as ElectricCurrentConverter, ElectricPotentialConverter as ElectricPotentialConverter, EnergyConverter as EnergyConverter, InformationConverter as InformationConverter, MassConverter as MassConverter, PowerConverter as PowerConverter, PressureConverter as PressureConverter, SpeedConverter as SpeedConverter, TemperatureConverter as TemperatureConverter, UnitlessRatioConverter as UnitlessRatioConverter, VolumeConverter as VolumeConverter, VolumeFlowRateConverter as VolumeFlowRateConverter
12
12
  from typing import Any, Literal
13
13
 
14
14
  UNIT_SCHEMA: Incomplete
@@ -5,7 +5,6 @@ from homeassistant.config_entries import ConfigEntry as ConfigEntry, ConfigFlow
5
5
  from homeassistant.const import APPLICATION_NAME as APPLICATION_NAME, CONF_PASSWORD as CONF_PASSWORD, CONF_TOKEN as CONF_TOKEN, CONF_USERNAME as CONF_USERNAME
6
6
  from homeassistant.core import HomeAssistant as HomeAssistant
7
7
  from homeassistant.exceptions import HomeAssistantError as HomeAssistantError
8
- from homeassistant.helpers.aiohttp_client import async_get_clientsession as async_get_clientsession
9
8
  from typing import Any
10
9
 
11
10
  _LOGGER: Incomplete
@@ -3,7 +3,6 @@ import logging
3
3
  from . import entity_registry as entity_registry
4
4
  from .entity import Entity as Entity
5
5
  from .entity_component import EntityComponent as EntityComponent
6
- from .json import json_bytes as json_bytes
7
6
  from .storage import Store as Store
8
7
  from .typing import ConfigType as ConfigType, VolDictType as VolDictType
9
8
  from _typeshed import Incomplete
@@ -30,8 +29,7 @@ class CollectionChange:
30
29
  change_type: str
31
30
  item_id: str
32
31
  item: Any
33
- item_hash: str | None = ...
34
- def __init__(self, change_type, item_id, item, item_hash=...) -> None: ...
32
+ def __init__(self, change_type, item_id, item) -> None: ...
35
33
  ChangeListener = Callable[[str, str, dict], Awaitable[None]]
36
34
  ChangeSetListener = Callable[[Iterable[CollectionChange]], Awaitable[None]]
37
35
 
@@ -107,7 +105,6 @@ class StorageCollection(ObservableCollection[_ItemT], metaclass=abc.ABCMeta):
107
105
  def _base_data_to_save(self) -> SerializedStorageCollection: ...
108
106
  @abstractmethod
109
107
  def _data_to_save(self) -> _StoreT: ...
110
- def _hash_item(self, item: dict) -> str: ...
111
108
 
112
109
  class DictStorageCollection(StorageCollection[dict, SerializedStorageCollection], metaclass=abc.ABCMeta):
113
110
  def _create_item(self, item_id: str, data: dict) -> dict: ...
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: homeassistant-stubs
3
- Version: 2024.9.0
3
+ Version: 2024.9.0b0
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.9.0)
19
+ Requires-Dist: homeassistant (==2024.9.0b0)
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
@@ -447,7 +447,7 @@ homeassistant-stubs/components/bmw_connected_drive/binary_sensor.pyi,sha256=wdev
447
447
  homeassistant-stubs/components/bmw_connected_drive/button.pyi,sha256=98FWTp_o2vNby8C3TsDs1Sz6WTxECj3AD9PAQsLMu-A,2004
448
448
  homeassistant-stubs/components/bmw_connected_drive/config_flow.pyi,sha256=UMsiB4fJYVmS2SzfCsa-2HBaupGLauWF5knDYfEldQ4,1786
449
449
  homeassistant-stubs/components/bmw_connected_drive/const.pyi,sha256=IvzkouJqxVPq2-8BkXV_71HfeKpIOjRQjAq68HaQ5vE,351
450
- homeassistant-stubs/components/bmw_connected_drive/coordinator.pyi,sha256=MThU0SjYv87xdErN0OQEDe70S16ioc6dMiuAejyiaZM,1207
450
+ homeassistant-stubs/components/bmw_connected_drive/coordinator.pyi,sha256=OBAU-Sy6CcD4CEXk5upmWbj1l31pTw67ySbTNcw5Wb8,1129
451
451
  homeassistant-stubs/components/bmw_connected_drive/device_tracker.pyi,sha256=1jFs1qeCuaAnN0-wzgoZmqlJhPiK4u_h1zwZfrR3qdo,1311
452
452
  homeassistant-stubs/components/bmw_connected_drive/diagnostics.pyi,sha256=IL9V_tY9bKQbRVZnEPQu1IFtHq6tMGkds9ha1rh5Uns,928
453
453
  homeassistant-stubs/components/bmw_connected_drive/entity.pyi,sha256=u5e_r9WeXaeRHbD4BqdTYnKiAhMgo6jWaPjCMEC3xK8,688
@@ -1669,11 +1669,11 @@ homeassistant-stubs/components/linear_garage_door/cover.pyi,sha256=gPKwRfGBUrSqz
1669
1669
  homeassistant-stubs/components/linear_garage_door/diagnostics.pyi,sha256=5F0UUj__QfBf7e-da6T6fK1oNCjHuPZ-hFoWJYz8jjw,608
1670
1670
  homeassistant-stubs/components/linear_garage_door/entity.pyi,sha256=XqjSAsvOCWUnbtQv013hiqqC5OGcpEroK-e20TD0IGc,816
1671
1671
  homeassistant-stubs/components/linear_garage_door/light.pyi,sha256=V85q00IFJ78qzUOmTGL98ccCFmgaiqcdVetEEKKei1Q,1174
1672
- homeassistant-stubs/components/linkplay/__init__.pyi,sha256=mh0Q4HlGbDMe_jd0Z1Oq5h2R130n8CZN61r1WSqUwkU,858
1673
- homeassistant-stubs/components/linkplay/config_flow.pyi,sha256=Z5HWJZ5-i15lErj2byryN7JNtD-qAZb1lu0OmqUxn0c,981
1674
- homeassistant-stubs/components/linkplay/const.pyi,sha256=PpphfxC1c87IZ19Zp3I5Zit-LaVluaP9zsk1Z0RByHM,139
1672
+ homeassistant-stubs/components/linkplay/__init__.pyi,sha256=idpzEsEHyu4EXfy0WX_kOWHBkS3O3OqUPM_31tQjp8I,746
1673
+ homeassistant-stubs/components/linkplay/config_flow.pyi,sha256=hNeUamBBir3bTbIJh1NsUXdVqZ-3emn9xkGbuENuj9s,876
1674
+ homeassistant-stubs/components/linkplay/const.pyi,sha256=rWT3SFRVo9UAulZ2cOIIZLDcsSvgXDgWjiGGp2jOpoY,121
1675
1675
  homeassistant-stubs/components/linkplay/media_player.pyi,sha256=lGyWmL3eGb6S_NvtwiGjQa4oovxmBx9SC784Mg7DWTY,3511
1676
- homeassistant-stubs/components/linkplay/utils.pyi,sha256=xBO7ryLFfXjGBEmn8iupcmxtc3lDT63XyPc_gHl9VJM,1001
1676
+ homeassistant-stubs/components/linkplay/utils.pyi,sha256=ydxUsFlarrh7dZj60MZDqkdlO7E2fikdu4BKFVs8JCw,619
1677
1677
  homeassistant-stubs/components/litejet/__init__.pyi,sha256=kjhUyHTWKn3vZrYmvjhfZZPRYhrX2CFS_k2st-gTf_Q,615
1678
1678
  homeassistant-stubs/components/litejet/config_flow.pyi,sha256=8eb8zahVh3L4-Ak-NBQUZn_dLPHHfEacfwtSD3duAGA,905
1679
1679
  homeassistant-stubs/components/litejet/const.pyi,sha256=XIupv_a3TmfaeyfjsM2D-nqZhnLwVEJgavgXNun0LFc,201
@@ -2002,7 +2002,7 @@ homeassistant-stubs/components/neato/hub.pyi,sha256=FJzblcwTfXDXXxUB4lBJejJ96E_J
2002
2002
  homeassistant-stubs/components/neato/sensor.pyi,sha256=mkV4meuVrquBSm5YdfFeUmZdvGP0mH0nnWuOFbEYCmA,1337
2003
2003
  homeassistant-stubs/components/neato/switch.pyi,sha256=9FIPPQyC1Ks5xkMqmhCwAZcXcfr4rBeEVksMSNzp1QE,1491
2004
2004
  homeassistant-stubs/components/neato/vacuum.pyi,sha256=kbM3yB04TMjnem0JRzmclNiAnL8QOG83jUXWvmTQi50,3213
2005
- homeassistant-stubs/components/nest/__init__.pyi,sha256=MGGVrc2_1ZNFtuwMdIQo2V1eAt2US48ayLWnsyCha6I,4306
2005
+ homeassistant-stubs/components/nest/__init__.pyi,sha256=wsqg19AQJGWM-U9FvPTMpjb8dY0tsU3FVyUtZPgrhF4,4247
2006
2006
  homeassistant-stubs/components/nest/api.pyi,sha256=u9cDizGRZkGMz5WfNo_A4NTWNNjbsPAyvIQq887b8yo,1597
2007
2007
  homeassistant-stubs/components/nest/application_credentials.pyi,sha256=6FJeSY56LumWCAyaIGYgl_lYqbkON3G4JRInkguyBsE,394
2008
2008
  homeassistant-stubs/components/nest/camera.pyi,sha256=GAywXoVY0h9pSoHJDxDAgRkbkPQAWDZ3174gAAnly6I,2584
@@ -2402,7 +2402,7 @@ homeassistant-stubs/components/recorder/table_managers/states_meta.pyi,sha256=eo
2402
2402
  homeassistant-stubs/components/recorder/table_managers/statistics_meta.pyi,sha256=9mLK8SvSaK_-kV75Ook95OV1PkhwKZWM3T6HHE6tgMY,2756
2403
2403
  homeassistant-stubs/components/recorder/tasks.pyi,sha256=ktSXRYOXI7yKvDrOxXSfqa2JK8GJ-11Q5ifhAn6ehwE,5682
2404
2404
  homeassistant-stubs/components/recorder/util.pyi,sha256=s-AKpQBt-sWJltaAoXLqDlncKtLzYx0j5wK3ZsG2o44,5677
2405
- homeassistant-stubs/components/recorder/websocket_api.pyi,sha256=4TfxG95G-L4elimyruJO5PQLtwiIDx8ownJVrFWSfpA,4268
2405
+ homeassistant-stubs/components/recorder/websocket_api.pyi,sha256=O3M6TZrDsR7ZPeZUjsE90Cw7eGdVa44xRoaP-5nkO6k,4220
2406
2406
  homeassistant-stubs/components/remote/__init__.pyi,sha256=H8tu1dZvoHkzIQF75vWRhwG9ZTfPT0GKrIyZ6aYuJJs,3805
2407
2407
  homeassistant-stubs/components/remote/device_action.pyi,sha256=6Vfp_kSun-CL4YEEv4I_O2A81JnXangKitq86wbdOqY,827
2408
2408
  homeassistant-stubs/components/remote/device_condition.pyi,sha256=PjpIeqIXc4BrnDcNNu1cqcmtcGbPeumAd5XnR2-WYi4,817
@@ -2469,7 +2469,7 @@ homeassistant-stubs/components/ring/__init__.pyi,sha256=XZbqC5UJ41K0gAromstjHQ6b
2469
2469
  homeassistant-stubs/components/ring/binary_sensor.pyi,sha256=rA_6OprkZ8mimZm7GVtTweLOsgQo1c3gEVCKoUCtgYE,2200
2470
2470
  homeassistant-stubs/components/ring/button.pyi,sha256=sS23bjy2WKVlRuVTRjuFJuJTHC0KDuLo-AAOsrR5sIU,1097
2471
2471
  homeassistant-stubs/components/ring/camera.pyi,sha256=YFjWMBIIbcXSU49xC5jpXrXl4KJmkQZD91MTn-s02N8,2167
2472
- homeassistant-stubs/components/ring/config_flow.pyi,sha256=NZxa9ILO0cXN5_0d86-HA7sam5boWNxa4D8Tb7Lfuf4,1496
2472
+ homeassistant-stubs/components/ring/config_flow.pyi,sha256=LMNwTS5ZTADZPrYWihzOGHuSsorc4VWOjTamJpXEg4s,1396
2473
2473
  homeassistant-stubs/components/ring/const.pyi,sha256=lxLdsTrlAecppWJeVrJq2fL7niJLnFyZToi8BZYqFd0,293
2474
2474
  homeassistant-stubs/components/ring/coordinator.pyi,sha256=_dqZz2WfBKq8uJYFj9j0Xk1d6mjXON3zA1YE6tD2HYw,1186
2475
2475
  homeassistant-stubs/components/ring/diagnostics.pyi,sha256=Dl3hLhzLm0-4gnNzoGR6UX9-su9LidA9NSDxwdzrQ9U,478
@@ -3410,7 +3410,7 @@ homeassistant-stubs/helpers/aiohttp_client.pyi,sha256=L08HHHfq2PLd_fX2vF42Bxxitv
3410
3410
  homeassistant-stubs/helpers/area_registry.pyi,sha256=Nbw_anNBR5SlHvam7a7usPtvXcdzS8-KswMeUUcalM4,4652
3411
3411
  homeassistant-stubs/helpers/category_registry.pyi,sha256=NEmNSMtmtYmy9EsY7S0xsh6P9jcFDnP1jTeIeowwh9Q,2975
3412
3412
  homeassistant-stubs/helpers/check_config.pyi,sha256=jlI6Bd-sj6Yp8W_rg8cUTkVdEdJ9XFidEkJJukfKdJU,1644
3413
- homeassistant-stubs/helpers/collection.pyi,sha256=tpxH9-jbRQOIOpRbX3gHfKPsgpNq4Spt-8ZUdqdMFsE,7470
3413
+ homeassistant-stubs/helpers/collection.pyi,sha256=xfvtdD5_B2fXrkJOc8ViueSXxo9m4Un3dCdHmKwTM4s,7331
3414
3414
  homeassistant-stubs/helpers/condition.pyi,sha256=I3D_7mopcuGnX0sfSkRTyMSMynD__kRsRu9EIERXzFw,6194
3415
3415
  homeassistant-stubs/helpers/config_entry_flow.pyi,sha256=ei4l0as5zuv_VhnmawGbizDN0zx2vfc6GqE0J8mOZ7g,3028
3416
3416
  homeassistant-stubs/helpers/config_entry_oauth2_flow.pyi,sha256=VwB71f8--E571jjvJ6nqiNSep5gV6LcYC_u0vgGMZbY,5369
@@ -3529,7 +3529,7 @@ homeassistant-stubs/util/yaml/dumper.pyi,sha256=uQjW0KuME-gXVWgYJLNLoRDwDzVhhhgg
3529
3529
  homeassistant-stubs/util/yaml/input.pyi,sha256=wuxpKYTXZL4MujFhqjHnRLv4VPYY6QPYd-Zji-Lz9Mo,383
3530
3530
  homeassistant-stubs/util/yaml/loader.pyi,sha256=FJDEgKwYTwuB8hBeJVjqwYqJ5hQZTSF_DtsnuO-E-pM,4758
3531
3531
  homeassistant-stubs/util/yaml/objects.pyi,sha256=YUlr0nf9ugzJT9J2YHaGV2fXu5opuyNvvHPqNW46m5I,707
3532
- homeassistant_stubs-2024.9.0.dist-info/LICENSE,sha256=_kHFjg-MAmJ-lXc7HiEjUzD3vZutVYKUVZZpAWcIuqo,1075
3533
- homeassistant_stubs-2024.9.0.dist-info/METADATA,sha256=eVOeBrTRBaL60g_QTN-Z9nF3971wpTWFfC4NKOOZjsc,3011
3534
- homeassistant_stubs-2024.9.0.dist-info/WHEEL,sha256=vVCvjcmxuUltf8cYhJ0sJMRDLr1XsPuxEId8YDzbyCY,88
3535
- homeassistant_stubs-2024.9.0.dist-info/RECORD,,
3532
+ homeassistant_stubs-2024.9.0b0.dist-info/WHEEL,sha256=vVCvjcmxuUltf8cYhJ0sJMRDLr1XsPuxEId8YDzbyCY,88
3533
+ homeassistant_stubs-2024.9.0b0.dist-info/LICENSE,sha256=_kHFjg-MAmJ-lXc7HiEjUzD3vZutVYKUVZZpAWcIuqo,1075
3534
+ homeassistant_stubs-2024.9.0b0.dist-info/METADATA,sha256=tJF5hiEQHhYw9ITX2XYyt3N-PUtn3tS9JbVDgI3Nlik,3015
3535
+ homeassistant_stubs-2024.9.0b0.dist-info/RECORD,,