homeassistant-stubs 2024.6.0b3__py3-none-any.whl → 2024.6.0b4__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.
- homeassistant-stubs/components/brother/__init__.pyi +2 -3
- homeassistant-stubs/components/brother/config_flow.pyi +1 -1
- homeassistant-stubs/components/brother/const.pyi +0 -1
- homeassistant-stubs/helpers/device_registry.pyi +1 -1
- homeassistant-stubs/helpers/llm.pyi +10 -10
- {homeassistant_stubs-2024.6.0b3.dist-info → homeassistant_stubs-2024.6.0b4.dist-info}/METADATA +2 -2
- {homeassistant_stubs-2024.6.0b3.dist-info → homeassistant_stubs-2024.6.0b4.dist-info}/RECORD +9 -10
- homeassistant-stubs/components/brother/utils.pyi +0 -10
- {homeassistant_stubs-2024.6.0b3.dist-info → homeassistant_stubs-2024.6.0b4.dist-info}/LICENSE +0 -0
- {homeassistant_stubs-2024.6.0b3.dist-info → homeassistant_stubs-2024.6.0b4.dist-info}/WHEEL +0 -0
@@ -1,8 +1,7 @@
|
|
1
|
-
from .const import DOMAIN as DOMAIN, SNMP_ENGINE as SNMP_ENGINE
|
2
1
|
from .coordinator import BrotherDataUpdateCoordinator as BrotherDataUpdateCoordinator
|
3
|
-
from .utils import get_snmp_engine as get_snmp_engine
|
4
2
|
from _typeshed import Incomplete
|
5
|
-
from homeassistant.
|
3
|
+
from homeassistant.components.snmp import async_get_snmp_engine as async_get_snmp_engine
|
4
|
+
from homeassistant.config_entries import ConfigEntry as ConfigEntry
|
6
5
|
from homeassistant.const import CONF_HOST as CONF_HOST, CONF_TYPE as CONF_TYPE, Platform as Platform
|
7
6
|
from homeassistant.core import HomeAssistant as HomeAssistant
|
8
7
|
from homeassistant.exceptions import ConfigEntryNotReady as ConfigEntryNotReady
|
@@ -1,7 +1,7 @@
|
|
1
1
|
from .const import DOMAIN as DOMAIN, PRINTER_TYPES as PRINTER_TYPES
|
2
|
-
from .utils import get_snmp_engine as get_snmp_engine
|
3
2
|
from _typeshed import Incomplete
|
4
3
|
from homeassistant.components import zeroconf as zeroconf
|
4
|
+
from homeassistant.components.snmp import async_get_snmp_engine as async_get_snmp_engine
|
5
5
|
from homeassistant.config_entries import ConfigFlow as ConfigFlow, ConfigFlowResult as ConfigFlowResult
|
6
6
|
from homeassistant.const import CONF_HOST as CONF_HOST, CONF_TYPE as CONF_TYPE
|
7
7
|
from homeassistant.exceptions import HomeAssistantError as HomeAssistantError
|
@@ -177,7 +177,7 @@ class DeviceRegistry(BaseRegistry[dict[str, list[dict[str, Any]]]]):
|
|
177
177
|
def _async_get_deleted_device(self, identifiers: set[tuple[str, str]], connections: set[tuple[str, str]]) -> DeletedDeviceEntry | None: ...
|
178
178
|
def _substitute_name_placeholders(self, domain: str, name: str, translation_placeholders: Mapping[str, str]) -> str: ...
|
179
179
|
def async_get_or_create(self, *, config_entry_id: str, configuration_url: str | URL | None | UndefinedType = ..., connections: set[tuple[str, str]] | None | UndefinedType = ..., default_manufacturer: str | None | UndefinedType = ..., default_model: str | None | UndefinedType = ..., default_name: str | None | UndefinedType = ..., disabled_by: DeviceEntryDisabler | None | UndefinedType = ..., entry_type: DeviceEntryType | None | UndefinedType = ..., hw_version: str | None | UndefinedType = ..., identifiers: set[tuple[str, str]] | None | UndefinedType = ..., manufacturer: str | None | UndefinedType = ..., model: str | None | UndefinedType = ..., name: str | None | UndefinedType = ..., serial_number: str | None | UndefinedType = ..., suggested_area: str | None | UndefinedType = ..., sw_version: str | None | UndefinedType = ..., translation_key: str | None = None, translation_placeholders: Mapping[str, str] | None = None, via_device: tuple[str, str] | None | UndefinedType = ...) -> DeviceEntry: ...
|
180
|
-
def async_update_device(self, device_id: str, *, add_config_entry_id: str | UndefinedType = ..., area_id: str | None | UndefinedType = ..., configuration_url: str | URL | None | UndefinedType = ..., disabled_by: DeviceEntryDisabler | None | UndefinedType = ..., entry_type: DeviceEntryType | None | UndefinedType = ..., hw_version: str | None | UndefinedType = ..., labels: set[str] | UndefinedType = ..., manufacturer: str | None | UndefinedType = ..., merge_connections: set[tuple[str, str]] | UndefinedType = ..., merge_identifiers: set[tuple[str, str]] | UndefinedType = ..., model: str | None | UndefinedType = ..., name_by_user: str | None | UndefinedType = ..., name: str | None | UndefinedType = ..., new_identifiers: set[tuple[str, str]] | UndefinedType = ..., remove_config_entry_id: str | UndefinedType = ..., serial_number: str | None | UndefinedType = ..., suggested_area: str | None | UndefinedType = ..., sw_version: str | None | UndefinedType = ..., via_device_id: str | None | UndefinedType = ...) -> DeviceEntry | None: ...
|
180
|
+
def async_update_device(self, device_id: str, *, add_config_entry_id: str | UndefinedType = ..., area_id: str | None | UndefinedType = ..., configuration_url: str | URL | None | UndefinedType = ..., disabled_by: DeviceEntryDisabler | None | UndefinedType = ..., entry_type: DeviceEntryType | None | UndefinedType = ..., hw_version: str | None | UndefinedType = ..., labels: set[str] | UndefinedType = ..., manufacturer: str | None | UndefinedType = ..., merge_connections: set[tuple[str, str]] | UndefinedType = ..., merge_identifiers: set[tuple[str, str]] | UndefinedType = ..., model: str | None | UndefinedType = ..., name_by_user: str | None | UndefinedType = ..., name: str | None | UndefinedType = ..., new_connections: set[tuple[str, str]] | UndefinedType = ..., new_identifiers: set[tuple[str, str]] | UndefinedType = ..., remove_config_entry_id: str | UndefinedType = ..., serial_number: str | None | UndefinedType = ..., suggested_area: str | None | UndefinedType = ..., sw_version: str | None | UndefinedType = ..., via_device_id: str | None | UndefinedType = ...) -> DeviceEntry | None: ...
|
181
181
|
def async_remove_device(self, device_id: str) -> None: ...
|
182
182
|
async def async_load(self) -> None: ...
|
183
183
|
def _data_to_save(self) -> dict[str, Any]: ...
|
@@ -23,11 +23,11 @@ DEFAULT_INSTRUCTIONS_PROMPT: str
|
|
23
23
|
def async_render_no_api_prompt(hass: HomeAssistant) -> str: ...
|
24
24
|
def _async_get_apis(hass: HomeAssistant) -> dict[str, API]: ...
|
25
25
|
def async_register_api(hass: HomeAssistant, api: API) -> None: ...
|
26
|
-
async def async_get_api(hass: HomeAssistant, api_id: str,
|
26
|
+
async def async_get_api(hass: HomeAssistant, api_id: str, llm_context: LLMContext) -> APIInstance: ...
|
27
27
|
def async_get_apis(hass: HomeAssistant) -> list[API]: ...
|
28
28
|
|
29
29
|
@dataclass(slots=True)
|
30
|
-
class
|
30
|
+
class LLMContext:
|
31
31
|
platform: str
|
32
32
|
context: Context | None
|
33
33
|
user_prompt: str | None
|
@@ -47,17 +47,17 @@ class Tool(metaclass=abc.ABCMeta):
|
|
47
47
|
description: str | None
|
48
48
|
parameters: vol.Schema
|
49
49
|
@abstractmethod
|
50
|
-
async def async_call(self, hass: HomeAssistant, tool_input: ToolInput,
|
50
|
+
async def async_call(self, hass: HomeAssistant, tool_input: ToolInput, llm_context: LLMContext) -> JsonObjectType: ...
|
51
51
|
def __repr__(self) -> str: ...
|
52
52
|
|
53
53
|
@dataclass
|
54
54
|
class APIInstance:
|
55
55
|
api: API
|
56
56
|
api_prompt: str
|
57
|
-
|
57
|
+
llm_context: LLMContext
|
58
58
|
tools: list[Tool]
|
59
59
|
async def async_call_tool(self, tool_input: ToolInput) -> JsonObjectType: ...
|
60
|
-
def __init__(self, api, api_prompt,
|
60
|
+
def __init__(self, api, api_prompt, llm_context, tools) -> None: ...
|
61
61
|
|
62
62
|
@dataclass(slots=True, kw_only=True)
|
63
63
|
class API(ABC, metaclass=abc.ABCMeta):
|
@@ -65,7 +65,7 @@ class API(ABC, metaclass=abc.ABCMeta):
|
|
65
65
|
id: str
|
66
66
|
name: str
|
67
67
|
@abstractmethod
|
68
|
-
async def async_get_api_instance(self,
|
68
|
+
async def async_get_api_instance(self, llm_context: LLMContext) -> APIInstance: ...
|
69
69
|
def __init__(self, *, hass, id, name) -> None: ...
|
70
70
|
|
71
71
|
class IntentTool(Tool):
|
@@ -73,13 +73,13 @@ class IntentTool(Tool):
|
|
73
73
|
description: Incomplete
|
74
74
|
parameters: Incomplete
|
75
75
|
def __init__(self, intent_handler: intent.IntentHandler) -> None: ...
|
76
|
-
async def async_call(self, hass: HomeAssistant, tool_input: ToolInput,
|
76
|
+
async def async_call(self, hass: HomeAssistant, tool_input: ToolInput, llm_context: LLMContext) -> JsonObjectType: ...
|
77
77
|
|
78
78
|
class AssistAPI(API):
|
79
79
|
IGNORE_INTENTS: Incomplete
|
80
80
|
def __init__(self, hass: HomeAssistant) -> None: ...
|
81
|
-
async def async_get_api_instance(self,
|
82
|
-
def _async_get_api_prompt(self,
|
83
|
-
def _async_get_tools(self,
|
81
|
+
async def async_get_api_instance(self, llm_context: LLMContext) -> APIInstance: ...
|
82
|
+
def _async_get_api_prompt(self, llm_context: LLMContext, exposed_entities: dict | None) -> str: ...
|
83
|
+
def _async_get_tools(self, llm_context: LLMContext, exposed_entities: dict | None) -> list[Tool]: ...
|
84
84
|
|
85
85
|
def _get_exposed_entities(hass: HomeAssistant, assistant: str) -> dict[str, dict[str, Any]]: ...
|
{homeassistant_stubs-2024.6.0b3.dist-info → homeassistant_stubs-2024.6.0b4.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: homeassistant-stubs
|
3
|
-
Version: 2024.6.
|
3
|
+
Version: 2024.6.0b4
|
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.
|
19
|
+
Requires-Dist: homeassistant (==2024.6.0b4)
|
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
|
{homeassistant_stubs-2024.6.0b3.dist-info → homeassistant_stubs-2024.6.0b4.dist-info}/RECORD
RENAMED
@@ -473,13 +473,12 @@ homeassistant-stubs/components/braviatv/diagnostics.pyi,sha256=EPb_QrZckydm2OX_K
|
|
473
473
|
homeassistant-stubs/components/braviatv/entity.pyi,sha256=VPCWboKR9sPyBWPuz_LfZh4EhdxyveQJwbeOm8sbFSc,592
|
474
474
|
homeassistant-stubs/components/braviatv/media_player.pyi,sha256=o64gycshk_nazW5KEKK2vi-FDSrfxoGO7LI6R1sRPyY,3273
|
475
475
|
homeassistant-stubs/components/braviatv/remote.pyi,sha256=0yjfUdA1I7eZtkAHlewOqTgYLDTWT0wGwIIu7Vu7Zo8,951
|
476
|
-
homeassistant-stubs/components/brother/__init__.pyi,sha256=
|
477
|
-
homeassistant-stubs/components/brother/config_flow.pyi,sha256=
|
478
|
-
homeassistant-stubs/components/brother/const.pyi,sha256=
|
476
|
+
homeassistant-stubs/components/brother/__init__.pyi,sha256=6f2yXWiaiLsA4BB6heTeQMQJuqjWzUrLGx78OitpQiQ,785
|
477
|
+
homeassistant-stubs/components/brother/config_flow.pyi,sha256=SVwy30-CS8S7kG6Wv9Y38hVWKYd4VlQ1qwA4GMjoAiQ,1151
|
478
|
+
homeassistant-stubs/components/brother/const.pyi,sha256=UiyuZ1BD-NPibg7fJGyfaW7ik5tv6UD-GAjAsZLgbxQ,139
|
479
479
|
homeassistant-stubs/components/brother/coordinator.pyi,sha256=exdoysDRpD8HPXjMjw2wnVL6SJKVKzcjySBcxXg_xf0,610
|
480
480
|
homeassistant-stubs/components/brother/diagnostics.pyi,sha256=wHcfHmLHT2-SGmJ2G8r1r7sDlUNncOmQgVSc2tB1xL0,264
|
481
481
|
homeassistant-stubs/components/brother/sensor.pyi,sha256=NQRyTCYhGNvKkBpKhNhkN8jyshmCLnwZoeMevfTE3KM,2371
|
482
|
-
homeassistant-stubs/components/brother/utils.pyi,sha256=80XZ3KkMvEJieo-0LIcxI82Uv8jrplfccD-c2ZXWW8c,446
|
483
482
|
homeassistant-stubs/components/browser/__init__.pyi,sha256=AZsijjI191wYaG9Ba3_xnIq2BuJAdGvugiKtx-92T0s,443
|
484
483
|
homeassistant-stubs/components/bthome/__init__.pyi,sha256=qKQPTmQXySHCUQIbH9QKQJFEC7SWbuDt3yikI4PmV-M,1687
|
485
484
|
homeassistant-stubs/components/bthome/binary_sensor.pyi,sha256=b_KIta4k3zS4n1pavKmmiQo4jYav57KZtS6ZeD_QKl4,1694
|
@@ -3288,7 +3287,7 @@ homeassistant-stubs/helpers/config_validation.pyi,sha256=wGjBTjdf_wsSurBhcSGhmcg
|
|
3288
3287
|
homeassistant-stubs/helpers/data_entry_flow.pyi,sha256=M_av1zXGh-dvUQpH1uUc7Dz1Jqc7xHEbXqJlVo_6ujw,1423
|
3289
3288
|
homeassistant-stubs/helpers/debounce.pyi,sha256=TvicXV_qkSOEafZh6d27iusSB9LAOYFNkVMoFcfyxnQ,1230
|
3290
3289
|
homeassistant-stubs/helpers/deprecation.pyi,sha256=wX4i61ch-5SS8IeLslCNtT2AP3UZ21tz916JD7w6Y9o,1570
|
3291
|
-
homeassistant-stubs/helpers/device_registry.pyi,sha256=
|
3290
|
+
homeassistant-stubs/helpers/device_registry.pyi,sha256=fdX1c_e1VATJ13-SjqIU1daceyKemkWi1GtShZsA5cs,11274
|
3292
3291
|
homeassistant-stubs/helpers/discovery.pyi,sha256=eIBD0gxHqY58PANQgLsPSQGkPM98uW17mmur1k3jAps,1742
|
3293
3292
|
homeassistant-stubs/helpers/discovery_flow.pyi,sha256=0hlkMylFX5XweVFfUQNqMVkl0mY4numJdSWiFJyIS7k,1428
|
3294
3293
|
homeassistant-stubs/helpers/dispatcher.pyi,sha256=-CFUiQu9mlswAoCLPGn6PWguJzsWjHU_2ah0gA1ET1o,2322
|
@@ -3312,7 +3311,7 @@ homeassistant-stubs/helpers/intent.pyi,sha256=0BzG3LFc_yNkA9hRRKv8w4NGFJpzldSUCu
|
|
3312
3311
|
homeassistant-stubs/helpers/issue_registry.pyi,sha256=-nFO9SpW-rNL8DusXkjktFMFpN2PwdQpGPBQM36ecDo,4115
|
3313
3312
|
homeassistant-stubs/helpers/json.pyi,sha256=tCdDyP3NYTF3Jb6cASWYnepzie6YLlD0ikMPW7wevKQ,1452
|
3314
3313
|
homeassistant-stubs/helpers/label_registry.pyi,sha256=fDg71PDb5lXKPPZZ0c85retuA53X_YWvkdNlHW1tVI8,2846
|
3315
|
-
homeassistant-stubs/helpers/llm.pyi,sha256=
|
3314
|
+
homeassistant-stubs/helpers/llm.pyi,sha256=HhVKDdDAS_1XSsLDjWP5G9mweNYtHB6m8kjbo59ue4g,3755
|
3316
3315
|
homeassistant-stubs/helpers/location.pyi,sha256=ynZlBZv3LuyphX4B28y2n2V4IHtJ6ETkUnqOlSYM1FM,655
|
3317
3316
|
homeassistant-stubs/helpers/network.pyi,sha256=34Qq5-Y8aevzqp_21b7L2Woqn-8dOunSTm7uML0_ty0,1773
|
3318
3317
|
homeassistant-stubs/helpers/normalized_name_base_registry.pyi,sha256=LoqQgtUt36e2EvYZisNHOydbZWGIRRSsuGNA01agMVg,704
|
@@ -3398,7 +3397,7 @@ homeassistant-stubs/util/yaml/dumper.pyi,sha256=uQjW0KuME-gXVWgYJLNLoRDwDzVhhhgg
|
|
3398
3397
|
homeassistant-stubs/util/yaml/input.pyi,sha256=wuxpKYTXZL4MujFhqjHnRLv4VPYY6QPYd-Zji-Lz9Mo,383
|
3399
3398
|
homeassistant-stubs/util/yaml/loader.pyi,sha256=RTT2312P0TB9bA-rj3xdQK_J6sqVQE4LBJozgLH3oao,4621
|
3400
3399
|
homeassistant-stubs/util/yaml/objects.pyi,sha256=YUlr0nf9ugzJT9J2YHaGV2fXu5opuyNvvHPqNW46m5I,707
|
3401
|
-
homeassistant_stubs-2024.6.
|
3402
|
-
homeassistant_stubs-2024.6.
|
3403
|
-
homeassistant_stubs-2024.6.
|
3404
|
-
homeassistant_stubs-2024.6.
|
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,,
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import pysnmp.hlapi.asyncio as hlapi
|
2
|
-
from .const import SNMP_ENGINE as SNMP_ENGINE
|
3
|
-
from _typeshed import Incomplete
|
4
|
-
from homeassistant.const import EVENT_HOMEASSISTANT_STOP as EVENT_HOMEASSISTANT_STOP
|
5
|
-
from homeassistant.core import Event as Event, HomeAssistant as HomeAssistant, callback as callback
|
6
|
-
from homeassistant.helpers import singleton as singleton
|
7
|
-
|
8
|
-
_LOGGER: Incomplete
|
9
|
-
|
10
|
-
def get_snmp_engine(hass: HomeAssistant) -> hlapi.SnmpEngine: ...
|
{homeassistant_stubs-2024.6.0b3.dist-info → homeassistant_stubs-2024.6.0b4.dist-info}/LICENSE
RENAMED
File without changes
|
File without changes
|