homeassistant-stubs 2024.4.2__py3-none-any.whl → 2024.4.4__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.
@@ -25,3 +25,5 @@ class AirthingsHeaterEnergySensor(CoordinatorEntity[AirthingsDataCoordinatorType
25
25
  def __init__(self, coordinator: AirthingsDataCoordinatorType, airthings_device: AirthingsDevice, entity_description: SensorEntityDescription) -> None: ...
26
26
  @property
27
27
  def native_value(self) -> StateType: ...
28
+ @property
29
+ def available(self) -> bool: ...
@@ -7,9 +7,10 @@ from homeassistant.const import CONF_ADDRESS as CONF_ADDRESS
7
7
  from homeassistant.data_entry_flow import AbortFlow as AbortFlow
8
8
  from typing import Any
9
9
 
10
- _LOGGER: Incomplete
11
10
  MIN_VERSION: Incomplete
12
11
 
12
+ def _title(discovery_info: BluetoothServiceInfoBleak) -> str: ...
13
+
13
14
  class AranetConfigFlow(ConfigFlow, domain=DOMAIN):
14
15
  VERSION: int
15
16
  _discovery_info: Incomplete
@@ -158,6 +158,7 @@ class AutomationEntity(BaseAutomationEntity, RestoreEntity):
158
158
  async def async_enable(self) -> None: ...
159
159
  async def async_disable(self, stop_actions: bool = ...) -> None: ...
160
160
  def _log_callback(self, level: int, msg: str, **kwargs: Any) -> None: ...
161
+ async def _async_trigger_if_enabled(self, run_variables: dict[str, Any], context: Context | None = None, skip_condition: bool = False) -> ScriptRunResult | None: ...
161
162
  async def _async_attach_triggers(self, home_assistant_start: bool) -> Callable[[], None] | None: ...
162
163
 
163
164
  @dataclass(slots=True)
@@ -1,6 +1,8 @@
1
+ from .const import CONF_PROVINCE as CONF_PROVINCE
1
2
  from homeassistant.config_entries import ConfigEntry as ConfigEntry
2
- from homeassistant.const import Platform as Platform
3
+ from homeassistant.const import CONF_COUNTRY as CONF_COUNTRY, Platform as Platform
3
4
  from homeassistant.core import HomeAssistant as HomeAssistant
5
+ from homeassistant.setup import SetupPhases as SetupPhases, async_pause_setup as async_pause_setup
4
6
 
5
7
  PLATFORMS: list[Platform]
6
8
 
@@ -117,6 +117,7 @@ class _ScriptRun:
117
117
  async def _async_if_step(self) -> None: ...
118
118
  def _async_futures_with_timeout(self, timeout: float | None) -> tuple[list[asyncio.Future[None]], asyncio.TimerHandle | None, asyncio.Future[None] | None]: ...
119
119
  async def _async_wait_for_trigger_step(self) -> None: ...
120
+ def _async_handle_timeout(self) -> None: ...
120
121
  async def _async_wait_with_optional_timeout(self, futures: list[asyncio.Future[None]], timeout_handle: asyncio.TimerHandle | None, timeout_future: asyncio.Future[None] | None, unsub: Callable[[], None]) -> None: ...
121
122
  async def _async_variables_step(self) -> None: ...
122
123
  async def _async_set_conversation_response_step(self) -> None: ...
@@ -65,12 +65,13 @@ class DataUpdateCoordinator(BaseDataUpdateCoordinatorProtocol, Generic[_DataT]):
65
65
  async def async_config_entry_first_refresh(self) -> None: ...
66
66
  async def async_refresh(self) -> None: ...
67
67
  async def _async_refresh(self, log_failures: bool = True, raise_on_auth_failed: bool = False, scheduled: bool = False, raise_on_entry_error: bool = False) -> None: ...
68
+ def _async_refresh_finished(self) -> None: ...
68
69
  def async_set_update_error(self, err: Exception) -> None: ...
69
70
  def async_set_updated_data(self, data: _DataT) -> None: ...
70
71
 
71
72
  class TimestampDataUpdateCoordinator(DataUpdateCoordinator[_DataT]):
72
73
  last_update_success_time: datetime | None
73
- async def _async_refresh(self, log_failures: bool = True, raise_on_auth_failed: bool = False, scheduled: bool = False, raise_on_entry_error: bool = False) -> None: ...
74
+ def _async_refresh_finished(self) -> None: ...
74
75
 
75
76
  class BaseCoordinatorEntity(entity.Entity, Generic[_BaseDataUpdateCoordinatorT], metaclass=abc.ABCMeta):
76
77
  coordinator: Incomplete
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: homeassistant-stubs
3
- Version: 2024.4.2
3
+ Version: 2024.4.4
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.4.2)
19
+ Requires-Dist: homeassistant (==2024.4.4)
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
@@ -101,7 +101,7 @@ homeassistant-stubs/components/airq/sensor.pyi,sha256=SU_ObIwUcLAzpcIUsBwowpnKaG
101
101
  homeassistant-stubs/components/airthings/__init__.pyi,sha256=F0rHSL0IpzREBFAXJMOmk6hOQd7mLB_37nVrRprpUwo,888
102
102
  homeassistant-stubs/components/airthings/config_flow.pyi,sha256=3j4OziU43JcPMew2vkhQip-LWHX35jA8Zri7w4pjXPw,605
103
103
  homeassistant-stubs/components/airthings/const.pyi,sha256=_scgybjOSMHLDC-E799zvzPt_n9BCzpvRrYz6_-h3BA,29
104
- homeassistant-stubs/components/airthings/sensor.pyi,sha256=u1sZgEs_o2KY0UB83upuQvR9cYUpk2FyQjMWw89YAg0,1972
104
+ homeassistant-stubs/components/airthings/sensor.pyi,sha256=7xAIhThviFsmSh7cjmkiaNVGPB0sdzMC9CtuoDSboAk,2023
105
105
  homeassistant-stubs/components/airthings_ble/__init__.pyi,sha256=-VQnQOluSug3JfrajtMa7isxj6AwgHGvTlDKatEG8xI,918
106
106
  homeassistant-stubs/components/airthings_ble/config_flow.pyi,sha256=6GQg2cVBcm3kCCQibH6KNOP4YjRousW8SHHj_H-9yUQ,1512
107
107
  homeassistant-stubs/components/airthings_ble/const.pyi,sha256=myzvf8_EC7jK4HfTu2Evzn3xADj6WxTtR2M7_gR9Bg0,96
@@ -276,7 +276,7 @@ homeassistant-stubs/components/aqualogic/switch.pyi,sha256=nzF7jaZWl8iv7cZr03zAR
276
276
  homeassistant-stubs/components/aquostv/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
277
277
  homeassistant-stubs/components/aquostv/media_player.pyi,sha256=sGeg5OJVLjoGgOImTGGfHCm5cJYilaedL_ta4znRs_o,2451
278
278
  homeassistant-stubs/components/aranet/__init__.pyi,sha256=b9ckUfbedsCHvHu7mdLM0xWuOeszjDLEcb8rZp36O0c,960
279
- homeassistant-stubs/components/aranet/config_flow.pyi,sha256=3wFbdMPB1Vbr01i8tpmKWIgltIUqbLXF0HMQ5xD6Q88,1203
279
+ homeassistant-stubs/components/aranet/config_flow.pyi,sha256=KC6peDbGCxlBe1vtdQB_GxI6EW6ceYL5od-SyLIwhtQ,1250
280
280
  homeassistant-stubs/components/aranet/const.pyi,sha256=khiPPfo2eMEa2_FD5EaWMNBjEj5lrRekpLiGQofynn8,12
281
281
  homeassistant-stubs/components/aranet/sensor.pyi,sha256=mkTzCTSXuMujupzbMIq357ewvfSm0woFBjy_9nViZU8,2714
282
282
  homeassistant-stubs/components/arcam_fmj/__init__.pyi,sha256=nw9S3M5YSgaw38663vgn3JLfhpPCZv61X4j2jwt9iOw,1124
@@ -322,7 +322,7 @@ homeassistant-stubs/components/auth/__init__.pyi,sha256=ARhKFuI-wdB2ST7LtFWlEgPt
322
322
  homeassistant-stubs/components/auth/indieauth.pyi,sha256=jh7c6AHsDSvxPire6RMjBRK9K0K1IT0hAy56bhuOhZk,807
323
323
  homeassistant-stubs/components/auth/login_flow.pyi,sha256=yCq5Gj6vqsPQWpjWn71KhVym9_U4iEQep_jbytNXsa4,2835
324
324
  homeassistant-stubs/components/auth/mfa_setup_flow.pyi,sha256=fYTtpX_nxwkTbC7lmAVCL0TTmJjllSZN1-0rem207q0,1165
325
- homeassistant-stubs/components/automation/__init__.pyi,sha256=cyZUaqYGojDLrRDcU9epl_X8ng_v_Ah6IyZpriM-RW8,10972
325
+ homeassistant-stubs/components/automation/__init__.pyi,sha256=46EkuZT2Jd83p0acscL57F72peMICVN027BRqXWyH-w,11142
326
326
  homeassistant-stubs/components/automation/config.pyi,sha256=Poo-WTrJMKVZSZyrZWfCgUN1gDBMPxcier-qLolMfZQ,2135
327
327
  homeassistant-stubs/components/automation/const.pyi,sha256=1uZ4plSCmNEF1e4bpaT842ktrPFGu6uM40pwndbF2pQ,279
328
328
  homeassistant-stubs/components/automation/helpers.pyi,sha256=3rrJfMsZsu7o7Pv3DkNxMsc4xLGGXkZ_YQpSdW2ihnE,606
@@ -1144,7 +1144,7 @@ homeassistant-stubs/components/history_stats/coordinator.pyi,sha256=jmy2JM4SPblh
1144
1144
  homeassistant-stubs/components/history_stats/data.pyi,sha256=UEGfcb2wvOiDX03NRgD40p4-_TGRL39KZgoP3erZsP4,1864
1145
1145
  homeassistant-stubs/components/history_stats/helpers.pyi,sha256=rUjQRDtq3uruvmiyMdRokbcsSIWqi7OyIG01ab8iQEw,639
1146
1146
  homeassistant-stubs/components/history_stats/sensor.pyi,sha256=JvyfrgZQ9Tsm38nCjGwnuR3E-g_hHIUa6nKM0bcl5c4,2758
1147
- homeassistant-stubs/components/holiday/__init__.pyi,sha256=Qs0qY3qsFvZsZ6qAWXg23NvTN9reYFzz4JhKDWVmKSg,376
1147
+ homeassistant-stubs/components/holiday/__init__.pyi,sha256=Q_fYGejdaBSGFbV1D-W_zmavp1b2Ku0GXHrPwRSoiqk,555
1148
1148
  homeassistant-stubs/components/holiday/calendar.pyi,sha256=auBGXWvsb3zWmtXqw3dKP-A-6erZXwjEMFOPI-pF6pQ,1452
1149
1149
  homeassistant-stubs/components/holiday/config_flow.pyi,sha256=qUo9nwxYGIja9x7dGo4ZMcLiPzYQC94nszhES-ahkGk,1200
1150
1150
  homeassistant-stubs/components/holiday/const.pyi,sha256=se9wTvKnOtS4iGygevgAVf9LNoAfVHN6SS2Dym9n87Q,71
@@ -3194,7 +3194,7 @@ homeassistant-stubs/helpers/registry.pyi,sha256=p_k2Cl8rRnkQXq4zNEu6a0YjwHeuOBWN
3194
3194
  homeassistant-stubs/helpers/reload.pyi,sha256=gHjwkCy5qhvJDeHh_8zOicVPMqqqiJ7o8eZqL-gAhfk,2244
3195
3195
  homeassistant-stubs/helpers/restore_state.pyi,sha256=3bal-ZQ0mYDm8KmOVXp0kxgA6XKLRqUMw8bugq8XmLs,2933
3196
3196
  homeassistant-stubs/helpers/schema_config_entry_flow.pyi,sha256=_BgnNjsHf9qiOpRMDE2588yoE6h7OfM8y4ayJ27Z2RI,5000
3197
- homeassistant-stubs/helpers/script.pyi,sha256=fWCezgIfkWize2VZDyIA5npkja4Aw5R-5cPNFghLmaI,13713
3197
+ homeassistant-stubs/helpers/script.pyi,sha256=JeLJMYf5qqWbm8hbd_gqvDl5e22qIHPkFTFCAxKeo84,13762
3198
3198
  homeassistant-stubs/helpers/script_variables.pyi,sha256=oH8USW9PDMHyCACqINIUIm2ZQENbHSyRN37dhgXD_08,570
3199
3199
  homeassistant-stubs/helpers/selector.pyi,sha256=19URGEJtfNHNOLOSvG_omcJY6Mo0pWEOm6U5o3j-SAE,15051
3200
3200
  homeassistant-stubs/helpers/sensor.pyi,sha256=lElWOartDwgLVi4vvGlqHFEJ8u25O_PiiEUOSo-CQOg,263
@@ -3217,7 +3217,7 @@ homeassistant-stubs/helpers/translation.pyi,sha256=f2Zw4ScmURB6gyqHmooicHhLNYXOP
3217
3217
  homeassistant-stubs/helpers/trigger.pyi,sha256=gXDkoU3m1bXnILjKVS50ay1VTmr_ZKmLynMueuFzfXo,3226
3218
3218
  homeassistant-stubs/helpers/trigger_template_entity.pyi,sha256=gU9MwPTo1DVaL8NWLMz94KxMFS3b4BoHWgwsaF8odu8,2802
3219
3219
  homeassistant-stubs/helpers/typing.pyi,sha256=ij0xu1RG0oCELo6X5i9KeSeGcmoo2p5oVYXZ6fOQdoc,580
3220
- homeassistant-stubs/helpers/update_coordinator.pyi,sha256=Y7V78HMUheFZqdYLXnFDBm_MVgJhcvSqacDgsVXJgjw,4792
3220
+ homeassistant-stubs/helpers/update_coordinator.pyi,sha256=252_zoGOjwnXHMB8GHJ2_ma44C1fp_gRgJUO5iA_sMQ,4722
3221
3221
  homeassistant-stubs/loader.pyi,sha256=f8Arf3PBoSq3gVv9TngZjR-NbkyBWWIXiQo2sj5aR80,12136
3222
3222
  homeassistant-stubs/requirements.pyi,sha256=3h_e-41vOZsSUVU_nWNvTvPUKuVU0ldVcRxR0p8PF6g,2430
3223
3223
  homeassistant-stubs/runner.pyi,sha256=0a69D02vxKAslvYHAp1QHd6jxAGLboOytxRMcY1EuLI,1675
@@ -3265,7 +3265,7 @@ homeassistant-stubs/util/yaml/dumper.pyi,sha256=uQjW0KuME-gXVWgYJLNLoRDwDzVhhhgg
3265
3265
  homeassistant-stubs/util/yaml/input.pyi,sha256=wuxpKYTXZL4MujFhqjHnRLv4VPYY6QPYd-Zji-Lz9Mo,383
3266
3266
  homeassistant-stubs/util/yaml/loader.pyi,sha256=_KzmG0bGDiN9zpcdhSx9p3leawOwjmdZDKE4ciEMfKc,4272
3267
3267
  homeassistant-stubs/util/yaml/objects.pyi,sha256=89c0boOGMdQvHxVk7Xs42DKMj3ldlozxjrpiV74RkGY,457
3268
- homeassistant_stubs-2024.4.2.dist-info/METADATA,sha256=XDK--_RHxbeC22HPCnQkBYUw8ZB4r01jCqUef4Q82ns,3011
3269
- homeassistant_stubs-2024.4.2.dist-info/WHEEL,sha256=vVCvjcmxuUltf8cYhJ0sJMRDLr1XsPuxEId8YDzbyCY,88
3270
- homeassistant_stubs-2024.4.2.dist-info/LICENSE,sha256=_kHFjg-MAmJ-lXc7HiEjUzD3vZutVYKUVZZpAWcIuqo,1075
3271
- homeassistant_stubs-2024.4.2.dist-info/RECORD,,
3268
+ homeassistant_stubs-2024.4.4.dist-info/LICENSE,sha256=_kHFjg-MAmJ-lXc7HiEjUzD3vZutVYKUVZZpAWcIuqo,1075
3269
+ homeassistant_stubs-2024.4.4.dist-info/METADATA,sha256=VFFd0xJSSFx3GPr-mBWQE-VR115SKchse89-kAUOLJo,3011
3270
+ homeassistant_stubs-2024.4.4.dist-info/WHEEL,sha256=vVCvjcmxuUltf8cYhJ0sJMRDLr1XsPuxEId8YDzbyCY,88
3271
+ homeassistant_stubs-2024.4.4.dist-info/RECORD,,