homeassistant-stubs 2024.6.0b4__py3-none-any.whl → 2024.6.0b6__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,9 +6,13 @@ from homeassistant.const import CONF_HOST as CONF_HOST, CONF_MODEL as CONF_MODEL
6
6
  from homeassistant.helpers.aiohttp_client import async_get_clientsession as async_get_clientsession
7
7
  from typing import Any
8
8
 
9
+ MIN_VERSION: Incomplete
10
+
9
11
  class AirGradientConfigFlow(ConfigFlow, domain=DOMAIN):
10
12
  data: Incomplete
13
+ client: Incomplete
11
14
  def __init__(self) -> None: ...
15
+ async def set_configuration_source(self) -> None: ...
12
16
  async def async_step_zeroconf(self, discovery_info: zeroconf.ZeroconfServiceInfo) -> ConfigFlowResult: ...
13
17
  async def async_step_discovery_confirm(self, user_input: dict[str, Any] | None = None) -> ConfigFlowResult: ...
14
18
  async def async_step_user(self, user_input: dict[str, Any] | None = None) -> ConfigFlowResult: ...
@@ -14,7 +14,7 @@ from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEnti
14
14
 
15
15
  @dataclass(frozen=True, kw_only=True)
16
16
  class AirGradientSelectEntityDescription(SelectEntityDescription):
17
- value_fn: Callable[[Config], str]
17
+ value_fn: Callable[[Config], str | None]
18
18
  set_value_fn: Callable[[AirGradientClient, str], Awaitable[None]]
19
19
  requires_display: bool = ...
20
20
  def __init__(self, *, key, device_class, entity_category, entity_registry_enabled_default, entity_registry_visible_default, force_update, icon, has_entity_name, name, translation_key, translation_placeholders, unit_of_measurement, options, value_fn, set_value_fn, requires_display) -> None: ...
@@ -30,7 +30,7 @@ class AirGradientSelect(AirGradientEntity, SelectEntity):
30
30
  _attr_unique_id: Incomplete
31
31
  def __init__(self, coordinator: AirGradientConfigCoordinator, description: AirGradientSelectEntityDescription) -> None: ...
32
32
  @property
33
- def current_option(self) -> str: ...
33
+ def current_option(self) -> str | None: ...
34
34
  async def async_select_option(self, option: str) -> None: ...
35
35
 
36
36
  class AirGradientProtectedSelect(AirGradientSelect):
@@ -1,7 +1,6 @@
1
- from .core import Recorder as Recorder
2
1
  from .models import StatisticPeriod as StatisticPeriod
3
2
  from .statistics import STATISTIC_UNIT_TO_UNIT_CONVERTER as STATISTIC_UNIT_TO_UNIT_CONVERTER, async_add_external_statistics as async_add_external_statistics, async_change_statistics_unit as async_change_statistics_unit, async_import_statistics as async_import_statistics, async_list_statistic_ids as async_list_statistic_ids, list_statistic_ids as list_statistic_ids, statistic_during_period as statistic_during_period, statistics_during_period as statistics_during_period, validate_statistics as validate_statistics
4
- from .util import PERIOD_SCHEMA as PERIOD_SCHEMA, get_instance as get_instance, resolve_period as resolve_period, session_scope as session_scope
3
+ from .util import PERIOD_SCHEMA as PERIOD_SCHEMA, get_instance as get_instance, resolve_period as resolve_period
5
4
  from _typeshed import Incomplete
6
5
  from datetime import datetime as dt
7
6
  from homeassistant.components import websocket_api as websocket_api
@@ -31,5 +30,3 @@ def ws_change_statistics_unit(hass: HomeAssistant, connection: websocket_api.Act
31
30
  async def ws_adjust_sum_statistics(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict[str, Any]) -> None: ...
32
31
  def ws_import_statistics(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict[str, Any]) -> None: ...
33
32
  def ws_info(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict[str, Any]) -> None: ...
34
- def _get_recorded_entities(hass: HomeAssistant, msg_id: int, instance: Recorder) -> bytes: ...
35
- async def ws_get_recorded_entities(hass: HomeAssistant, connection: websocket_api.ActiveConnection, msg: dict[str, Any]) -> None: ...
@@ -72,6 +72,7 @@ class SamsungTVLegacyBridge(SamsungTVBridge):
72
72
  async def async_try_connect(self) -> str: ...
73
73
  def _try_connect(self) -> str: ...
74
74
  async def async_device_info(self) -> None: ...
75
+ def _notify_reauth_callback(self) -> None: ...
75
76
  auth_failed: bool
76
77
  def _get_remote(self) -> Remote: ...
77
78
  async def async_send_keys(self, keys: list[str]) -> None: ...
@@ -1,11 +1,11 @@
1
1
  from .const import DEFAULT_NAME as DEFAULT_NAME, DEVICE_ID as DEVICE_ID, DOMAIN as DOMAIN, EVENT_TAG_SCANNED as EVENT_TAG_SCANNED, LOGGER as LOGGER, TAG_ID as TAG_ID
2
2
  from _typeshed import Incomplete
3
+ from collections.abc import Callable as Callable
3
4
  from homeassistant.components import websocket_api as websocket_api
4
- from homeassistant.const import CONF_NAME as CONF_NAME
5
+ from homeassistant.const import CONF_ID as CONF_ID, CONF_NAME as CONF_NAME
5
6
  from homeassistant.core import Context as Context, HomeAssistant as HomeAssistant, callback as callback
6
7
  from homeassistant.exceptions import HomeAssistantError as HomeAssistantError
7
8
  from homeassistant.helpers import collection as collection, entity_registry as er
8
- from homeassistant.helpers.dispatcher import async_dispatcher_connect as async_dispatcher_connect, async_dispatcher_send as async_dispatcher_send
9
9
  from homeassistant.helpers.entity import Entity as Entity
10
10
  from homeassistant.helpers.entity_component import EntityComponent as EntityComponent
11
11
  from homeassistant.helpers.storage import Store as Store
@@ -60,15 +60,17 @@ class TagEntity(Entity):
60
60
  _unrecorded_attributes: Incomplete
61
61
  _attr_translation_key = DOMAIN
62
62
  _attr_should_poll: bool
63
+ _entity_update_handlers: Incomplete
63
64
  _attr_name: Incomplete
64
65
  _tag_id: Incomplete
65
66
  _attr_unique_id: Incomplete
66
67
  _last_device_id: Incomplete
67
68
  _last_scanned: Incomplete
68
- def __init__(self, name: str, tag_id: str, last_scanned: str | None, device_id: str | None) -> None: ...
69
+ def __init__(self, entity_update_handlers: dict[str, Callable[[str | None, str | None], None]], name: str, tag_id: str, last_scanned: str | None, device_id: str | None) -> None: ...
69
70
  def async_handle_event(self, device_id: str | None, last_scanned: str | None) -> None: ...
70
71
  @property
71
72
  def state(self) -> str | None: ...
72
73
  @property
73
74
  def extra_state_attributes(self) -> dict[str, Any]: ...
74
75
  async def async_added_to_hass(self) -> None: ...
76
+ async def async_will_remove_from_hass(self) -> None: ...
@@ -17,14 +17,14 @@ class IntegrationFrame:
17
17
  integration: str
18
18
  module: str | None
19
19
  relative_filename: str
20
- _frame: FrameType
20
+ frame: FrameType
21
21
  @cached_property
22
22
  def line_number(self) -> int: ...
23
23
  @cached_property
24
24
  def filename(self) -> str: ...
25
25
  @cached_property
26
26
  def line(self) -> str: ...
27
- def __init__(self, *, custom_integration, integration, module, relative_filename, _frame) -> None: ...
27
+ def __init__(self, *, custom_integration, integration, module, relative_filename, frame) -> None: ...
28
28
 
29
29
  def get_integration_logger(fallback_name: str) -> logging.Logger: ...
30
30
  def get_current_frame(depth: int = 0) -> FrameType: ...
@@ -18,6 +18,7 @@ from homeassistant.util.json import JsonObjectType as JsonObjectType
18
18
  from typing import Any
19
19
 
20
20
  LLM_API_ASSIST: str
21
+ BASE_PROMPT: str
21
22
  DEFAULT_INSTRUCTIONS_PROMPT: str
22
23
 
23
24
  def async_render_no_api_prompt(hass: HomeAssistant) -> str: ...
@@ -71,6 +72,7 @@ class API(ABC, metaclass=abc.ABCMeta):
71
72
  class IntentTool(Tool):
72
73
  name: Incomplete
73
74
  description: Incomplete
75
+ extra_slots: Incomplete
74
76
  parameters: Incomplete
75
77
  def __init__(self, intent_handler: intent.IntentHandler) -> None: ...
76
78
  async def async_call(self, hass: HomeAssistant, tool_input: ToolInput, llm_context: LLMContext) -> JsonObjectType: ...
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: homeassistant-stubs
3
- Version: 2024.6.0b4
3
+ Version: 2024.6.0b6
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.6.0b4)
19
+ Requires-Dist: homeassistant (==2024.6.0b6)
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
@@ -84,11 +84,11 @@ homeassistant-stubs/components/air_quality/__init__.pyi,sha256=O7HGA4c_MnbiqoWWm
84
84
  homeassistant-stubs/components/air_quality/const.pyi,sha256=xKqGbNfghjJ6-slWRS0vQza1FRzVbXZsZJEkpajP4XM,45
85
85
  homeassistant-stubs/components/air_quality/group.pyi,sha256=lTyLewkLqh24MOKN6IBWlkWhBjvJ4a_A6amRI-GCQe4,320
86
86
  homeassistant-stubs/components/airgradient/__init__.pyi,sha256=Cm_v78FOxHQA6e3_sOEGLT5Jdx2Z_oY5U7pZCf9PPCg,694
87
- homeassistant-stubs/components/airgradient/config_flow.pyi,sha256=tviAq4_IymR64xC8wxEtKoCtSg1m_tYsH27k-RMyZZA,879
87
+ homeassistant-stubs/components/airgradient/config_flow.pyi,sha256=cBK11DlIP1K6b-6xegfJPauMdq-zDzSUrVaOWxifhJQ,985
88
88
  homeassistant-stubs/components/airgradient/const.pyi,sha256=ApJjYGIfxEHQ112a2tGXF7SyTQbhrih7AUV4OwvbqgQ,65
89
89
  homeassistant-stubs/components/airgradient/coordinator.pyi,sha256=-eDgYw9EtyddyCsl2UMbKOTk4y4aPiLKAgOJt-jnSl8,1113
90
90
  homeassistant-stubs/components/airgradient/entity.pyi,sha256=o1oGxoBT0XXqRqhltvpMGr2y4_1HOfPYLuxOQsu7Ngg,518
91
- homeassistant-stubs/components/airgradient/select.pyi,sha256=fbeNXRQHLxdZfGxBhN2C93EsSNlpXUUiaoFOZYv64mw,2301
91
+ homeassistant-stubs/components/airgradient/select.pyi,sha256=uaabvCTIASGhr01DRDowMz5m_UtMw5elRcysaIpKDt4,2315
92
92
  homeassistant-stubs/components/airgradient/sensor.pyi,sha256=n4PrsuzO_alWK7pLmCtGtDaQ8pzgXfQVkbE49q1sm8w,2341
93
93
  homeassistant-stubs/components/airly/__init__.pyi,sha256=vhmh5vPI3FZagfzWywOmLi6Bqqk_AY7SQCeS4RJHOGY,890
94
94
  homeassistant-stubs/components/airly/config_flow.pyi,sha256=w-8DQj3RXRj-ZVx7ga3H55BR_YYrsbIeFfwuL7WvL2E,850
@@ -2305,7 +2305,7 @@ homeassistant-stubs/components/recorder/table_managers/states_meta.pyi,sha256=TA
2305
2305
  homeassistant-stubs/components/recorder/table_managers/statistics_meta.pyi,sha256=-O9z6dlkxChQCk3pnO5pKI4tD_3ANprpBifh6zA_qNA,2665
2306
2306
  homeassistant-stubs/components/recorder/tasks.pyi,sha256=OwwYwMNFp1nKSnKIVSQ0P8sDOHR1j0ymCf54KWcHp1Y,6384
2307
2307
  homeassistant-stubs/components/recorder/util.pyi,sha256=qWzCcmSPfT2M3Cl2gNrPlt-pP9KBYxuLPlVShFw-yAM,5460
2308
- homeassistant-stubs/components/recorder/websocket_api.pyi,sha256=6hRBzVTKRdRsmVshthrtgm70XkG5bmj4meZKyVO3iD8,4631
2308
+ homeassistant-stubs/components/recorder/websocket_api.pyi,sha256=Bm3Zp7p4GpZGbtiuwqtCupS3DKgeaFAOZvPUvt79oTg,4331
2309
2309
  homeassistant-stubs/components/remote/__init__.pyi,sha256=aPdglsyXkfxlqfCDL7UIcH0sI7BJkH0VOQxNggg-030,3894
2310
2310
  homeassistant-stubs/components/remote/device_action.pyi,sha256=6Vfp_kSun-CL4YEEv4I_O2A81JnXangKitq86wbdOqY,827
2311
2311
  homeassistant-stubs/components/remote/device_condition.pyi,sha256=PjpIeqIXc4BrnDcNNu1cqcmtcGbPeumAd5XnR2-WYi4,817
@@ -2433,7 +2433,7 @@ homeassistant-stubs/components/ruuvitag_ble/config_flow.pyi,sha256=p9DFG_rlzNueI
2433
2433
  homeassistant-stubs/components/ruuvitag_ble/const.pyi,sha256=khiPPfo2eMEa2_FD5EaWMNBjEj5lrRekpLiGQofynn8,12
2434
2434
  homeassistant-stubs/components/ruuvitag_ble/sensor.pyi,sha256=xraLAwHSBvgSgrnKUYQ4sIM592fFRqlucHsQFsiNIkg,2112
2435
2435
  homeassistant-stubs/components/samsungtv/__init__.pyi,sha256=PWoRnt04mwiVUKGpqLqzfrVqYYyXo18S6XVzclhn24U,2646
2436
- homeassistant-stubs/components/samsungtv/bridge.pyi,sha256=m82JAKHY7a-VgmSOXcmWGk2xojb-CwwW0HswEoiB3Ak,7051
2436
+ homeassistant-stubs/components/samsungtv/bridge.pyi,sha256=1o3jjPogfXQOv6teGkF-zFc5anUWnG1lU2SXUdnQm3A,7102
2437
2437
  homeassistant-stubs/components/samsungtv/config_flow.pyi,sha256=SXBDl1X4NaLnlsE21e6ahU9YJMxl-2omJkICegAyDm4,4931
2438
2438
  homeassistant-stubs/components/samsungtv/const.pyi,sha256=SzwXEL84Lf1Yk7u28m2azWsh9SfvyKF_4opoa2dxlpE,784
2439
2439
  homeassistant-stubs/components/samsungtv/coordinator.pyi,sha256=HTp2oe-a_t5sgZ0dUgHGh2fB4PjqI6J-cvYAkz8rbok,747
@@ -2729,7 +2729,7 @@ homeassistant-stubs/components/systemmonitor/diagnostics.pyi,sha256=3tOFv8ZXiIcv
2729
2729
  homeassistant-stubs/components/systemmonitor/repairs.pyi,sha256=TGxQR3xujHlcp6gXfZ4BRvsXz3_rrzw07K9PKH4V5U8,884
2730
2730
  homeassistant-stubs/components/systemmonitor/sensor.pyi,sha256=egACKcKIwiiIUVVbSqwQmkRem4POn5ba6eayirwqE3o,4703
2731
2731
  homeassistant-stubs/components/systemmonitor/util.pyi,sha256=tJIGD7TT7BqPVYhoGQrbYHMKco9nrnUzT1l_5fLKZIo,655
2732
- homeassistant-stubs/components/tag/__init__.pyi,sha256=a9M2V0cGFj2Iq-QVn42cmnOHbVxoUlgB5D9Ju-nnOx8,3761
2732
+ homeassistant-stubs/components/tag/__init__.pyi,sha256=U1tyWfUNbugc-UWK3Nf3LlOJ7I8vVyMM_rydAEiA_qc,3862
2733
2733
  homeassistant-stubs/components/tag/const.pyi,sha256=49NoQDGRwRhwzeE6qELOC1Mgq6PniZKfBsbLNQ9EM9I,133
2734
2734
  homeassistant-stubs/components/tag/trigger.pyi,sha256=Qc6KBk5exjqWqYLdXahuNtOk6yVQOM_I5STpXfQz3ac,696
2735
2735
  homeassistant-stubs/components/tailscale/__init__.pyi,sha256=1GacvcYbzVUJgerHKhnWEXIK5D-itQcYi-5P6djVYe8,1269
@@ -3299,7 +3299,7 @@ homeassistant-stubs/helpers/entity_values.pyi,sha256=lxdx5isoDpSurN03yLcyJiiwkph
3299
3299
  homeassistant-stubs/helpers/entityfilter.pyi,sha256=1pbVZXp58ryJJF4T6X-w013NqYtQ0KhtUKcAJVhJJSY,2060
3300
3300
  homeassistant-stubs/helpers/event.pyi,sha256=YBoUU696SaeqoIlMXdXnQzKCuDsW-s4J2bBNgiph10I,17046
3301
3301
  homeassistant-stubs/helpers/floor_registry.pyi,sha256=9lL6NgrX9pyP5PlBlfekCN4OB7V39QQCN-uJK1VIKOE,2813
3302
- homeassistant-stubs/helpers/frame.pyi,sha256=eVaNUJOEfDzG2DGlPJceARay1MRg9hSbCzAaiddEmm4,1624
3302
+ homeassistant-stubs/helpers/frame.pyi,sha256=SMMy3MY7B6L5ZeU_XWoWloFoy7aRmSKBWpthuNrb-ys,1622
3303
3303
  homeassistant-stubs/helpers/group.pyi,sha256=0Hs__xX08YdzO9KVd4w-Gs3l9f6x3ArtVXlygKl9x2k,482
3304
3304
  homeassistant-stubs/helpers/http.pyi,sha256=FFzxkVJX4wcm_YrGAkYpogyQl1vFdgMJrAfjZSQDgFc,1800
3305
3305
  homeassistant-stubs/helpers/httpx_client.pyi,sha256=ZdW9hlczrLBPhqW0BnLB4ONYTzxGTfIuIq9pLDt4P9Q,1510
@@ -3311,7 +3311,7 @@ homeassistant-stubs/helpers/intent.pyi,sha256=0BzG3LFc_yNkA9hRRKv8w4NGFJpzldSUCu
3311
3311
  homeassistant-stubs/helpers/issue_registry.pyi,sha256=-nFO9SpW-rNL8DusXkjktFMFpN2PwdQpGPBQM36ecDo,4115
3312
3312
  homeassistant-stubs/helpers/json.pyi,sha256=tCdDyP3NYTF3Jb6cASWYnepzie6YLlD0ikMPW7wevKQ,1452
3313
3313
  homeassistant-stubs/helpers/label_registry.pyi,sha256=fDg71PDb5lXKPPZZ0c85retuA53X_YWvkdNlHW1tVI8,2846
3314
- homeassistant-stubs/helpers/llm.pyi,sha256=HhVKDdDAS_1XSsLDjWP5G9mweNYtHB6m8kjbo59ue4g,3755
3314
+ homeassistant-stubs/helpers/llm.pyi,sha256=vJxm_0IIuK7J2FiblDNmNS8k5y6KWOGMoc95q5qDuIg,3800
3315
3315
  homeassistant-stubs/helpers/location.pyi,sha256=ynZlBZv3LuyphX4B28y2n2V4IHtJ6ETkUnqOlSYM1FM,655
3316
3316
  homeassistant-stubs/helpers/network.pyi,sha256=34Qq5-Y8aevzqp_21b7L2Woqn-8dOunSTm7uML0_ty0,1773
3317
3317
  homeassistant-stubs/helpers/normalized_name_base_registry.pyi,sha256=LoqQgtUt36e2EvYZisNHOydbZWGIRRSsuGNA01agMVg,704
@@ -3397,7 +3397,7 @@ homeassistant-stubs/util/yaml/dumper.pyi,sha256=uQjW0KuME-gXVWgYJLNLoRDwDzVhhhgg
3397
3397
  homeassistant-stubs/util/yaml/input.pyi,sha256=wuxpKYTXZL4MujFhqjHnRLv4VPYY6QPYd-Zji-Lz9Mo,383
3398
3398
  homeassistant-stubs/util/yaml/loader.pyi,sha256=RTT2312P0TB9bA-rj3xdQK_J6sqVQE4LBJozgLH3oao,4621
3399
3399
  homeassistant-stubs/util/yaml/objects.pyi,sha256=YUlr0nf9ugzJT9J2YHaGV2fXu5opuyNvvHPqNW46m5I,707
3400
- homeassistant_stubs-2024.6.0b4.dist-info/WHEEL,sha256=vVCvjcmxuUltf8cYhJ0sJMRDLr1XsPuxEId8YDzbyCY,88
3401
- homeassistant_stubs-2024.6.0b4.dist-info/LICENSE,sha256=_kHFjg-MAmJ-lXc7HiEjUzD3vZutVYKUVZZpAWcIuqo,1075
3402
- homeassistant_stubs-2024.6.0b4.dist-info/METADATA,sha256=WQLWPoH52ggzjvVLsKCbYaI5x1eO66KVszRPhnJCd8M,3015
3403
- homeassistant_stubs-2024.6.0b4.dist-info/RECORD,,
3400
+ homeassistant_stubs-2024.6.0b6.dist-info/WHEEL,sha256=vVCvjcmxuUltf8cYhJ0sJMRDLr1XsPuxEId8YDzbyCY,88
3401
+ homeassistant_stubs-2024.6.0b6.dist-info/LICENSE,sha256=_kHFjg-MAmJ-lXc7HiEjUzD3vZutVYKUVZZpAWcIuqo,1075
3402
+ homeassistant_stubs-2024.6.0b6.dist-info/METADATA,sha256=2zlozuivs1l924ywBdzPe71CqvfohThUgA4Hedn8bCU,3015
3403
+ homeassistant_stubs-2024.6.0b6.dist-info/RECORD,,