homeassistant-stubs 2024.8.0b9__py3-none-any.whl → 2024.8.1__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.
@@ -3,13 +3,16 @@ from _typeshed import Incomplete
3
3
  from collections.abc import Mapping
4
4
  from homeassistant.components.notify import ATTR_DATA as ATTR_DATA, ATTR_MESSAGE as ATTR_MESSAGE, ATTR_TITLE as ATTR_TITLE, BaseNotificationService as BaseNotificationService, DOMAIN as DOMAIN, NotifyEntity as NotifyEntity, SERVICE_SEND_MESSAGE as SERVICE_SEND_MESSAGE
5
5
  from homeassistant.config_entries import ConfigEntry as ConfigEntry
6
- from homeassistant.const import ATTR_ENTITY_ID as ATTR_ENTITY_ID, ATTR_SERVICE as ATTR_SERVICE, CONF_ENTITIES as CONF_ENTITIES, STATE_UNAVAILABLE as STATE_UNAVAILABLE
6
+ from homeassistant.const import ATTR_ENTITY_ID as ATTR_ENTITY_ID, CONF_ACTION as CONF_ACTION, CONF_ENTITIES as CONF_ENTITIES, CONF_SERVICE as CONF_SERVICE, STATE_UNAVAILABLE as STATE_UNAVAILABLE
7
7
  from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
8
8
  from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
9
9
  from homeassistant.helpers.typing import ConfigType as ConfigType, DiscoveryInfoType as DiscoveryInfoType
10
10
  from typing import Any
11
11
 
12
12
  CONF_SERVICES: str
13
+
14
+ def _backward_compat_schema(value: Any | None) -> Any: ...
15
+
13
16
  PLATFORM_SCHEMA: Incomplete
14
17
 
15
18
  def add_defaults(input_data: dict[str, Any], default_data: Mapping[str, Any]) -> dict[str, Any]: ...
@@ -66,7 +66,7 @@ def _drop_index(session_maker: Callable[[], Session], table_name: str, index_nam
66
66
  def _add_columns(session_maker: Callable[[], Session], table_name: str, columns_def: list[str]) -> None: ...
67
67
  def _modify_columns(session_maker: Callable[[], Session], engine: Engine, table_name: str, columns_def: list[str]) -> None: ...
68
68
  def _update_states_table_with_foreign_key_options(session_maker: Callable[[], Session], engine: Engine) -> None: ...
69
- def _drop_foreign_key_constraints(session_maker: Callable[[], Session], engine: Engine, table: str, column: str) -> list[tuple[str, str, ReflectedForeignKeyConstraint]]: ...
69
+ def _drop_foreign_key_constraints(session_maker: Callable[[], Session], engine: Engine, table: str, column: str) -> tuple[bool, list[tuple[str, str, ReflectedForeignKeyConstraint]]]: ...
70
70
  def _restore_foreign_key_constraints(session_maker: Callable[[], Session], engine: Engine, dropped_constraints: list[tuple[str, str, ReflectedForeignKeyConstraint]]) -> None: ...
71
71
  def _apply_update(instance: Recorder, hass: HomeAssistant, engine: Engine, session_maker: Callable[[], Session], new_version: int, old_version: int) -> None: ...
72
72
 
@@ -308,6 +308,7 @@ class EntityIDMigration(BaseRunTimeMigrationWithQuery):
308
308
  class EventIDPostMigration(BaseRunTimeMigration):
309
309
  migration_id: str
310
310
  task = MigrationTask
311
+ migration_version: int
311
312
  @staticmethod
312
313
  def migrate_data(instance: Recorder) -> bool: ...
313
314
  @staticmethod
@@ -315,4 +316,4 @@ class EventIDPostMigration(BaseRunTimeMigration):
315
316
  def needs_migrate_impl(self, instance: Recorder, session: Session) -> NeedsMigrateResult: ...
316
317
 
317
318
  def _mark_migration_done(session: Session, migration: type[BaseRunTimeMigration]) -> None: ...
318
- def rebuild_sqlite_table(session_maker: Callable[[], Session], engine: Engine, table: type[Base]) -> None: ...
319
+ def rebuild_sqlite_table(session_maker: Callable[[], Session], engine: Engine, table: type[Base]) -> bool: ...
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: homeassistant-stubs
3
- Version: 2024.8.0b9
3
+ Version: 2024.8.1
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.8.0b9)
19
+ Requires-Dist: homeassistant (==2024.8.1)
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
@@ -1177,7 +1177,7 @@ homeassistant-stubs/components/group/fan.pyi,sha256=Q71hWOy8-fZKjtTR3lPY8I_ZiE8Z
1177
1177
  homeassistant-stubs/components/group/light.pyi,sha256=XuwaIR_EJucd1x4D6aJmZLFVPuy9iEmx9uqXIn4h_SA,3499
1178
1178
  homeassistant-stubs/components/group/lock.pyi,sha256=Psi87AQQK0wAgU5Uso0_iE-0LJXI1ePXU9meNnH12Cw,2384
1179
1179
  homeassistant-stubs/components/group/media_player.pyi,sha256=BZ7jFJizqntFAkdGvXZfo3GJPiW4WbTglaZLV6Texhk,4555
1180
- homeassistant-stubs/components/group/notify.pyi,sha256=kop8kXvE8PAKHgll-dFxmY418_SPOpQ56dUWWwPTI1c,2187
1180
+ homeassistant-stubs/components/group/notify.pyi,sha256=zMLBNZc_5rm-WsporHM60yiD-mDDxmScEy_t6RDOe4I,2276
1181
1181
  homeassistant-stubs/components/group/registry.pyi,sha256=b6mQu4VYOO9XlJ7b0RYywCH9RktAvEe4aIN8zBFk5nA,2682
1182
1182
  homeassistant-stubs/components/group/reproduce_state.pyi,sha256=hsgYYKLLNWukmVn8EXhIMtzJwAvNx8Y-pm5iDmKiRQw,469
1183
1183
  homeassistant-stubs/components/group/sensor.pyi,sha256=BmGDs4tgKj8mTHD87JG7KWViApE_yBSoTbKsE-KtNf4,5605
@@ -2356,7 +2356,7 @@ homeassistant-stubs/components/recorder/history/common.pyi,sha256=x-4Swd7277gcHw
2356
2356
  homeassistant-stubs/components/recorder/history/const.pyi,sha256=QiVq0ILuLWh_v0c_ZAhhaJuS_a2B4yKXQHgy97r81rs,212
2357
2357
  homeassistant-stubs/components/recorder/history/legacy.pyi,sha256=CtWFpp3KmHhy5d1icMSN6fHOUmo3By6xzFWwAYZRSrs,5527
2358
2358
  homeassistant-stubs/components/recorder/history/modern.pyi,sha256=IdzzRfC_HM2qNIDrUXG6Dj9-f0CNYpb5oqkip8uQbFU,5237
2359
- homeassistant-stubs/components/recorder/migration.pyi,sha256=q1pjrnBgU_CqI5bSsCmtrDI0WRVoaWEVZbwYkt07nFU,17988
2359
+ homeassistant-stubs/components/recorder/migration.pyi,sha256=15uVFK7yynFvCfweiL76lpBR2NP5g66x0mvyu3Yi9hw,18028
2360
2360
  homeassistant-stubs/components/recorder/models/__init__.pyi,sha256=rIegeqBnmMKhv3iJEp_1YMdjzQcSbIDwOvUmFfRQanw,1887
2361
2361
  homeassistant-stubs/components/recorder/models/context.pyi,sha256=ozPnonl9i-pXBokFkAq5QTEtsxj8Yfb7M2M444kyFRI,394
2362
2362
  homeassistant-stubs/components/recorder/models/database.pyi,sha256=59cqL8iEiBTQrF-n762RORfm9Q_xaJ8OW_7PbARe3WY,554
@@ -3513,7 +3513,7 @@ homeassistant-stubs/util/yaml/dumper.pyi,sha256=uQjW0KuME-gXVWgYJLNLoRDwDzVhhhgg
3513
3513
  homeassistant-stubs/util/yaml/input.pyi,sha256=wuxpKYTXZL4MujFhqjHnRLv4VPYY6QPYd-Zji-Lz9Mo,383
3514
3514
  homeassistant-stubs/util/yaml/loader.pyi,sha256=YJBfnreepz_lhluQPSW4zVkwMv6fj2gZfGJtWObnfLg,4652
3515
3515
  homeassistant-stubs/util/yaml/objects.pyi,sha256=YUlr0nf9ugzJT9J2YHaGV2fXu5opuyNvvHPqNW46m5I,707
3516
- homeassistant_stubs-2024.8.0b9.dist-info/WHEEL,sha256=vVCvjcmxuUltf8cYhJ0sJMRDLr1XsPuxEId8YDzbyCY,88
3517
- homeassistant_stubs-2024.8.0b9.dist-info/LICENSE,sha256=_kHFjg-MAmJ-lXc7HiEjUzD3vZutVYKUVZZpAWcIuqo,1075
3518
- homeassistant_stubs-2024.8.0b9.dist-info/METADATA,sha256=EWKVoBxabpOX-ufsl1nsj0Va1VKIMOVbqOnWA4-XyGE,3015
3519
- homeassistant_stubs-2024.8.0b9.dist-info/RECORD,,
3516
+ homeassistant_stubs-2024.8.1.dist-info/WHEEL,sha256=vVCvjcmxuUltf8cYhJ0sJMRDLr1XsPuxEId8YDzbyCY,88
3517
+ homeassistant_stubs-2024.8.1.dist-info/LICENSE,sha256=_kHFjg-MAmJ-lXc7HiEjUzD3vZutVYKUVZZpAWcIuqo,1075
3518
+ homeassistant_stubs-2024.8.1.dist-info/METADATA,sha256=62G09HmA9H1DiwNVIjtG6u096uZoeE1teZYhFRv73v0,3011
3519
+ homeassistant_stubs-2024.8.1.dist-info/RECORD,,