homeassistant-stubs 2025.2.0b10__py3-none-any.whl → 2025.2.0b12__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.
@@ -1,8 +1,9 @@
1
- from .api import OneDriveConfigEntryAccessTokenProvider as OneDriveConfigEntryAccessTokenProvider
2
1
  from .const import DATA_BACKUP_AGENT_LISTENERS as DATA_BACKUP_AGENT_LISTENERS, DOMAIN as DOMAIN
3
2
  from _typeshed import Incomplete
3
+ from collections.abc import Awaitable, Callable as Callable
4
4
  from dataclasses import dataclass
5
5
  from homeassistant.config_entries import ConfigEntry as ConfigEntry
6
+ from homeassistant.const import CONF_ACCESS_TOKEN as CONF_ACCESS_TOKEN
6
7
  from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
7
8
  from homeassistant.exceptions import ConfigEntryAuthFailed as ConfigEntryAuthFailed, ConfigEntryNotReady as ConfigEntryNotReady
8
9
  from homeassistant.helpers.aiohttp_client import async_get_clientsession as async_get_clientsession
@@ -12,7 +13,7 @@ from onedrive_personal_sdk import OneDriveClient
12
13
  @dataclass
13
14
  class OneDriveRuntimeData:
14
15
  client: OneDriveClient
15
- token_provider: OneDriveConfigEntryAccessTokenProvider
16
+ token_function: Callable[[], Awaitable[str]]
16
17
  backup_folder_id: str
17
18
  type OneDriveConfigEntry = ConfigEntry[OneDriveRuntimeData]
18
19
 
@@ -22,7 +22,7 @@ class OneDriveBackupAgent(BackupAgent):
22
22
  _hass: Incomplete
23
23
  _entry: Incomplete
24
24
  _client: Incomplete
25
- _token_provider: Incomplete
25
+ _token_function: Incomplete
26
26
  _folder_id: Incomplete
27
27
  name: Incomplete
28
28
  unique_id: Incomplete
@@ -1,5 +1,4 @@
1
1
  import logging
2
- from .api import OneDriveConfigFlowAccessTokenProvider as OneDriveConfigFlowAccessTokenProvider
3
2
  from .const import DOMAIN as DOMAIN, OAUTH_SCOPES as OAUTH_SCOPES
4
3
  from collections.abc import Mapping
5
4
  from homeassistant.config_entries import ConfigFlowResult as ConfigFlowResult, SOURCE_REAUTH as SOURCE_REAUTH
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: homeassistant-stubs
3
- Version: 2025.2.0b10
3
+ Version: 2025.2.0b12
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.2.0b10
21
+ Requires-Dist: homeassistant==2025.2.0b12
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)
@@ -2393,11 +2393,10 @@ homeassistant-stubs/components/oncue/const.pyi,sha256=4EdfjkoGOjFyxQQnpGXMvvi-E5
2393
2393
  homeassistant-stubs/components/oncue/entity.pyi,sha256=TZJvQio7AWzk_dLywz3eSiHJJJQsMeVOqjA69LfZ5xc,1181
2394
2394
  homeassistant-stubs/components/oncue/sensor.pyi,sha256=9gLVq1feftHBrtw02Be1vpbB6Gus0lAv2JBxniW-g_8,1612
2395
2395
  homeassistant-stubs/components/oncue/types.pyi,sha256=KqG_536UpHzCPPb-qCPZA6bUmXVTiPqmIZKwz8NabMs,285
2396
- homeassistant-stubs/components/onedrive/__init__.pyi,sha256=s7GqsIlxkutUnLcvxneg7agtA9vjsxx9SNp0IB2NQ7o,1427
2397
- homeassistant-stubs/components/onedrive/api.pyi,sha256=jBHSZx_30q-CO1JcPAiL6fAROzAgrQpQG9NTrh4LfXE,653
2396
+ homeassistant-stubs/components/onedrive/__init__.pyi,sha256=j8cLs2kYhBu47va4k71HVi8DKr_zH1kq9s_bP0__mXk,1450
2398
2397
  homeassistant-stubs/components/onedrive/application_credentials.pyi,sha256=gC5LevrYVBmGRf6YJuwIR4rPyphIk0ro8IvjoPQVjiI,343
2399
- homeassistant-stubs/components/onedrive/backup.pyi,sha256=XjQFK73v1QgmGdpF1jfuR8JMBuAhMm9kjuePEa39sIo,2370
2400
- homeassistant-stubs/components/onedrive/config_flow.pyi,sha256=KWv8ztIW3WB5yByJ4SuPlGKkFqqHk5MhOn-nZADl_4g,1175
2398
+ homeassistant-stubs/components/onedrive/backup.pyi,sha256=jgSiNppzVywVBvZuRPzuzduHPVZkR-Ay5LJcibbrTyc,2370
2399
+ homeassistant-stubs/components/onedrive/config_flow.pyi,sha256=QuwE73Q4jjlVOZCBLkGWTyEC10_t9W5UUaYMxTiDfmE,1079
2401
2400
  homeassistant-stubs/components/onedrive/const.pyi,sha256=evMrmc2zcW6JonKLyshgaphWE_14cDyc9PQphaM_jGY,336
2402
2401
  homeassistant-stubs/components/onewire/__init__.pyi,sha256=wMDZKMHzaTbanOaeZ95Qi4krp8DV-HxY9toO5lC0PEo,878
2403
2402
  homeassistant-stubs/components/onewire/binary_sensor.pyi,sha256=3f8tg405qoYG9GCwHm-1CsAQw4VdpfgZK4B3NCt7qeE,1942
@@ -4019,7 +4018,7 @@ homeassistant-stubs/util/yaml/dumper.pyi,sha256=uQjW0KuME-gXVWgYJLNLoRDwDzVhhhgg
4019
4018
  homeassistant-stubs/util/yaml/input.pyi,sha256=wuxpKYTXZL4MujFhqjHnRLv4VPYY6QPYd-Zji-Lz9Mo,383
4020
4019
  homeassistant-stubs/util/yaml/loader.pyi,sha256=9MJS3AZNCemqAEU41KVJox1f16OceP64SNXE1-Z37kU,4117
4021
4020
  homeassistant-stubs/util/yaml/objects.pyi,sha256=EmJiT8WnVUHa5dkbYzXtWzu5mhO1YG5bBnEAIF0XLAU,665
4022
- homeassistant_stubs-2025.2.0b10.dist-info/METADATA,sha256=_hFDDUNG26eieb4UsqNfL6gjBgUcz26N1FBWc2fxRr0,2958
4023
- homeassistant_stubs-2025.2.0b10.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
4024
- homeassistant_stubs-2025.2.0b10.dist-info/licenses/LICENSE,sha256=_kHFjg-MAmJ-lXc7HiEjUzD3vZutVYKUVZZpAWcIuqo,1075
4025
- homeassistant_stubs-2025.2.0b10.dist-info/RECORD,,
4021
+ homeassistant_stubs-2025.2.0b12.dist-info/METADATA,sha256=T7-w9q1jS-6Xlv0v9qhfUzP-ZvRl85sMBbduwhAr-O0,2958
4022
+ homeassistant_stubs-2025.2.0b12.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
4023
+ homeassistant_stubs-2025.2.0b12.dist-info/licenses/LICENSE,sha256=_kHFjg-MAmJ-lXc7HiEjUzD3vZutVYKUVZZpAWcIuqo,1075
4024
+ homeassistant_stubs-2025.2.0b12.dist-info/RECORD,,
@@ -1,14 +0,0 @@
1
- from _typeshed import Incomplete
2
- from homeassistant.const import CONF_ACCESS_TOKEN as CONF_ACCESS_TOKEN
3
- from homeassistant.helpers import config_entry_oauth2_flow as config_entry_oauth2_flow
4
- from onedrive_personal_sdk import TokenProvider
5
-
6
- class OneDriveConfigFlowAccessTokenProvider(TokenProvider):
7
- _token: Incomplete
8
- def __init__(self, token: str) -> None: ...
9
- def async_get_access_token(self) -> str: ...
10
-
11
- class OneDriveConfigEntryAccessTokenProvider(TokenProvider):
12
- _oauth_session: Incomplete
13
- def __init__(self, oauth_session: config_entry_oauth2_flow.OAuth2Session) -> None: ...
14
- def async_get_access_token(self) -> str: ...