homeassistant-stubs 2024.1.3__py3-none-any.whl → 2024.1.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.
@@ -1,4 +1,4 @@
1
- from .const import CONF_COAP_PORT as CONF_COAP_PORT, CONF_SLEEP_PERIOD as CONF_SLEEP_PERIOD, DATA_CONFIG_ENTRY as DATA_CONFIG_ENTRY, DEFAULT_COAP_PORT as DEFAULT_COAP_PORT, DOMAIN as DOMAIN, LOGGER as LOGGER, PUSH_UPDATE_ISSUE_ID as PUSH_UPDATE_ISSUE_ID
1
+ from .const import BLOCK_EXPECTED_SLEEP_PERIOD as BLOCK_EXPECTED_SLEEP_PERIOD, BLOCK_WRONG_SLEEP_PERIOD as BLOCK_WRONG_SLEEP_PERIOD, CONF_COAP_PORT as CONF_COAP_PORT, CONF_SLEEP_PERIOD as CONF_SLEEP_PERIOD, DATA_CONFIG_ENTRY as DATA_CONFIG_ENTRY, DEFAULT_COAP_PORT as DEFAULT_COAP_PORT, DOMAIN as DOMAIN, LOGGER as LOGGER, MODELS_WITH_WRONG_SLEEP_PERIOD as MODELS_WITH_WRONG_SLEEP_PERIOD, PUSH_UPDATE_ISSUE_ID as PUSH_UPDATE_ISSUE_ID
2
2
  from .coordinator import ShellyBlockCoordinator as ShellyBlockCoordinator, ShellyEntryData as ShellyEntryData, ShellyRestCoordinator as ShellyRestCoordinator, ShellyRpcCoordinator as ShellyRpcCoordinator, ShellyRpcPollingCoordinator as ShellyRpcPollingCoordinator, get_entry_data as get_entry_data
3
3
  from .utils import get_block_device_sleep_period as get_block_device_sleep_period, get_coap_context as get_coap_context, get_device_entry_gen as get_device_entry_gen, get_rpc_device_wakeup_period as get_rpc_device_wakeup_period, get_ws_context as get_ws_context
4
4
  from _typeshed import Incomplete
@@ -8,7 +8,6 @@ from homeassistant.config_entries import ConfigEntry as ConfigEntry
8
8
  from homeassistant.const import EntityCategory as EntityCategory, STATE_ON as STATE_ON
9
9
  from homeassistant.core import HomeAssistant as HomeAssistant
10
10
  from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
11
- from homeassistant.helpers.entity_registry import RegistryEntry as RegistryEntry
12
11
  from homeassistant.helpers.restore_state import RestoreEntity as RestoreEntity
13
12
  from typing import Final
14
13
 
@@ -28,7 +27,6 @@ SENSORS: Final[Incomplete]
28
27
  REST_SENSORS: Final[Incomplete]
29
28
  RPC_SENSORS: Final[Incomplete]
30
29
 
31
- def _build_block_description(entry: RegistryEntry) -> BlockBinarySensorDescription: ...
32
30
  async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...
33
31
 
34
32
  class BlockBinarySensor(ShellyBlockAttributeEntity, BinarySensorEntity):
@@ -13,6 +13,7 @@ MAX_TRANSITION_TIME: Final[int]
13
13
  RGBW_MODELS: Final[Incomplete]
14
14
  MODELS_SUPPORTING_LIGHT_TRANSITION: Final[Incomplete]
15
15
  MODELS_SUPPORTING_LIGHT_EFFECTS: Final[Incomplete]
16
+ MODELS_WITH_WRONG_SLEEP_PERIOD: Final[Incomplete]
16
17
  DUAL_MODE_LIGHT_MODELS: Final[Incomplete]
17
18
  REST_SENSORS_UPDATE_INTERVAL: Final[int]
18
19
  RPC_SENSORS_POLLING_INTERVAL: Final[int]
@@ -45,6 +46,8 @@ RPC_THERMOSTAT_SETTINGS: Final[Incomplete]
45
46
  KELVIN_MAX_VALUE: Final[int]
46
47
  KELVIN_MIN_VALUE_WHITE: Final[int]
47
48
  KELVIN_MIN_VALUE_COLOR: Final[int]
49
+ BLOCK_WRONG_SLEEP_PERIOD: int
50
+ BLOCK_EXPECTED_SLEEP_PERIOD: int
48
51
  UPTIME_DEVIATION: Final[int]
49
52
  ENTRY_RELOAD_COOLDOWN: int
50
53
  SHELLY_GAS_MODELS: Incomplete
@@ -16,9 +16,9 @@ from homeassistant.helpers.typing import StateType as StateType
16
16
  from homeassistant.helpers.update_coordinator import CoordinatorEntity as CoordinatorEntity
17
17
  from typing import Any
18
18
 
19
- def async_setup_entry_attribute_entities(hass: HomeAssistant, config_entry: ConfigEntry, async_add_entities: AddEntitiesCallback, sensors: Mapping[tuple[str, str], BlockEntityDescription], sensor_class: Callable, description_class: Callable[[RegistryEntry], BlockEntityDescription]) -> None: ...
19
+ def async_setup_entry_attribute_entities(hass: HomeAssistant, config_entry: ConfigEntry, async_add_entities: AddEntitiesCallback, sensors: Mapping[tuple[str, str], BlockEntityDescription], sensor_class: Callable) -> None: ...
20
20
  def async_setup_block_attribute_entities(hass: HomeAssistant, async_add_entities: AddEntitiesCallback, coordinator: ShellyBlockCoordinator, sensors: Mapping[tuple[str, str], BlockEntityDescription], sensor_class: Callable) -> None: ...
21
- def async_restore_block_attribute_entities(hass: HomeAssistant, config_entry: ConfigEntry, async_add_entities: AddEntitiesCallback, coordinator: ShellyBlockCoordinator, sensors: Mapping[tuple[str, str], BlockEntityDescription], sensor_class: Callable, description_class: Callable[[RegistryEntry], BlockEntityDescription]) -> None: ...
21
+ def async_restore_block_attribute_entities(hass: HomeAssistant, config_entry: ConfigEntry, async_add_entities: AddEntitiesCallback, coordinator: ShellyBlockCoordinator, sensors: Mapping[tuple[str, str], BlockEntityDescription], sensor_class: Callable) -> None: ...
22
22
  def async_setup_entry_rpc(hass: HomeAssistant, config_entry: ConfigEntry, async_add_entities: AddEntitiesCallback, sensors: Mapping[str, RpcEntityDescription], sensor_class: Callable) -> None: ...
23
23
  def async_setup_rpc_attribute_entities(hass: HomeAssistant, config_entry: ConfigEntry, async_add_entities: AddEntitiesCallback, sensors: Mapping[str, RpcEntityDescription], sensor_class: Callable) -> None: ...
24
24
  def async_restore_rpc_attribute_entities(hass: HomeAssistant, config_entry: ConfigEntry, async_add_entities: AddEntitiesCallback, coordinator: ShellyRpcCoordinator, sensors: Mapping[str, RpcEntityDescription], sensor_class: Callable) -> None: ...
@@ -122,7 +122,6 @@ class ShellyRpcAttributeEntity(ShellyRpcEntity, Entity):
122
122
  def available(self) -> bool: ...
123
123
 
124
124
  class ShellySleepingBlockAttributeEntity(ShellyBlockAttributeEntity):
125
- sensors: Incomplete
126
125
  last_state: Incomplete
127
126
  coordinator: Incomplete
128
127
  attribute: Incomplete
@@ -131,7 +130,7 @@ class ShellySleepingBlockAttributeEntity(ShellyBlockAttributeEntity):
131
130
  _attr_device_info: Incomplete
132
131
  _attr_unique_id: Incomplete
133
132
  _attr_name: Incomplete
134
- def __init__(self, coordinator: ShellyBlockCoordinator, block: Block | None, attribute: str, description: BlockEntityDescription, entry: RegistryEntry | None = None, sensors: Mapping[tuple[str, str], BlockEntityDescription] | None = None) -> None: ...
133
+ def __init__(self, coordinator: ShellyBlockCoordinator, block: Block | None, attribute: str, description: BlockEntityDescription, entry: RegistryEntry | None = None) -> None: ...
135
134
  def _update_callback(self) -> None: ...
136
135
  async def async_update(self) -> None: ...
137
136
 
@@ -3,7 +3,6 @@ from .coordinator import ShellyBlockCoordinator as ShellyBlockCoordinator
3
3
  from .entity import BlockEntityDescription as BlockEntityDescription, ShellySleepingBlockAttributeEntity as ShellySleepingBlockAttributeEntity, async_setup_entry_attribute_entities as async_setup_entry_attribute_entities
4
4
  from _typeshed import Incomplete
5
5
  from aioshelly.block_device import Block as Block
6
- from collections.abc import Mapping
7
6
  from dataclasses import dataclass
8
7
  from homeassistant.components.number import NumberEntityDescription as NumberEntityDescription, NumberExtraStoredData as NumberExtraStoredData, NumberMode as NumberMode, RestoreNumber as RestoreNumber
9
8
  from homeassistant.config_entries import ConfigEntry as ConfigEntry
@@ -22,13 +21,12 @@ class BlockNumberDescription(BlockEntityDescription, NumberEntityDescription):
22
21
 
23
22
  NUMBERS: Final[Incomplete]
24
23
 
25
- def _build_block_description(entry: RegistryEntry) -> BlockNumberDescription: ...
26
24
  async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...
27
25
 
28
26
  class BlockSleepingNumber(ShellySleepingBlockAttributeEntity, RestoreNumber):
29
27
  entity_description: BlockNumberDescription
30
28
  restored_data: Incomplete
31
- def __init__(self, coordinator: ShellyBlockCoordinator, block: Block | None, attribute: str, description: BlockNumberDescription, entry: RegistryEntry | None = None, sensors: Mapping[tuple[str, str], BlockNumberDescription] | None = None) -> None: ...
29
+ def __init__(self, coordinator: ShellyBlockCoordinator, block: Block | None, attribute: str, description: BlockNumberDescription, entry: RegistryEntry | None = None) -> None: ...
32
30
  async def async_added_to_hass(self) -> None: ...
33
31
  @property
34
32
  def native_value(self) -> float | None: ...
@@ -4,7 +4,6 @@ from .entity import BlockEntityDescription as BlockEntityDescription, RestEntity
4
4
  from .utils import get_device_entry_gen as get_device_entry_gen, get_device_uptime as get_device_uptime
5
5
  from _typeshed import Incomplete
6
6
  from aioshelly.block_device import Block as Block
7
- from collections.abc import Mapping
8
7
  from dataclasses import dataclass
9
8
  from homeassistant.components.sensor import RestoreSensor as RestoreSensor, SensorDeviceClass as SensorDeviceClass, SensorEntity as SensorEntity, SensorEntityDescription as SensorEntityDescription, SensorExtraStoredData as SensorExtraStoredData, SensorStateClass as SensorStateClass
10
9
  from homeassistant.config_entries import ConfigEntry as ConfigEntry
@@ -13,7 +12,6 @@ from homeassistant.core import HomeAssistant as HomeAssistant
13
12
  from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
14
13
  from homeassistant.helpers.entity_registry import RegistryEntry as RegistryEntry
15
14
  from homeassistant.helpers.typing import StateType as StateType
16
- from homeassistant.util.enum import try_parse_enum as try_parse_enum
17
15
  from typing import Final
18
16
 
19
17
  @dataclass(frozen=True)
@@ -32,7 +30,6 @@ SENSORS: Final[Incomplete]
32
30
  REST_SENSORS: Final[Incomplete]
33
31
  RPC_SENSORS: Final[Incomplete]
34
32
 
35
- def _build_block_description(entry: RegistryEntry) -> BlockSensorDescription: ...
36
33
  async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...
37
34
 
38
35
  class BlockSensor(ShellyBlockAttributeEntity, SensorEntity):
@@ -55,7 +52,7 @@ class RpcSensor(ShellyRpcAttributeEntity, SensorEntity):
55
52
  class BlockSleepingSensor(ShellySleepingBlockAttributeEntity, RestoreSensor):
56
53
  entity_description: BlockSensorDescription
57
54
  restored_data: Incomplete
58
- def __init__(self, coordinator: ShellyBlockCoordinator, block: Block | None, attribute: str, description: BlockSensorDescription, entry: RegistryEntry | None = None, sensors: Mapping[tuple[str, str], BlockSensorDescription] | None = None) -> None: ...
55
+ def __init__(self, coordinator: ShellyBlockCoordinator, block: Block | None, attribute: str, description: BlockSensorDescription, entry: RegistryEntry | None = None) -> None: ...
59
56
  async def async_added_to_hass(self) -> None: ...
60
57
  @property
61
58
  def native_value(self) -> StateType: ...
@@ -1,6 +1,7 @@
1
1
  from _typeshed import Incomplete
2
2
 
3
3
  _LOGGER: Incomplete
4
+ SKIP_DISK_TYPES: Incomplete
4
5
 
5
6
  def get_all_disk_mounts() -> set[str]: ...
6
7
  def get_all_network_interfaces() -> set[str]: ...
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: homeassistant-stubs
3
- Version: 2024.1.3
3
+ Version: 2024.1.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
@@ -17,7 +17,7 @@ Classifier: Programming Language :: Python :: 3.11
17
17
  Classifier: Programming Language :: Python :: 3.10
18
18
  Classifier: Topic :: Software Development
19
19
  Classifier: Typing :: Typed
20
- Requires-Dist: homeassistant (==2024.1.3)
20
+ Requires-Dist: homeassistant (==2024.1.4)
21
21
  Project-URL: Bug Tracker, https://github.com/KapJI/homeassistant-stubs/issues
22
22
  Project-URL: Repository, https://github.com/KapJI/homeassistant-stubs
23
23
  Project-URL: Release Notes, https://github.com/KapJI/homeassistant-stubs/releases
@@ -1994,24 +1994,24 @@ homeassistant-stubs/components/sfr_box/coordinator.pyi,sha256=8M0LuvMxhg_luLLgqu
1994
1994
  homeassistant-stubs/components/sfr_box/diagnostics.pyi,sha256=oLlMfm425PawAq4Ua6ZttQyLh8wPJVNEc5Nhn68PPmY,488
1995
1995
  homeassistant-stubs/components/sfr_box/models.pyi,sha256=RTiW4j-fUIztQBiB-sfYqeDH78QF3tkpyzljzm5HH4I,567
1996
1996
  homeassistant-stubs/components/sfr_box/sensor.pyi,sha256=D1TdoyI4r8FWuzvJbizsARhzaRqaDVZmqjkXJuZGJKs,2690
1997
- homeassistant-stubs/components/shelly/__init__.pyi,sha256=9n6Sq2PhCoyTvdgMypfgD_r9mfRsolpMsPhLuaG7ypY,2355
1998
- homeassistant-stubs/components/shelly/binary_sensor.pyi,sha256=poee2hzUhT6aIZ7ivdcsEeGS6nq8BqOPCsxjAFGtSik,4272
1997
+ homeassistant-stubs/components/shelly/__init__.pyi,sha256=7DNRnNCn4ObKAQMZgXFGtHpHwNxJHot4z7YCS7jMUFc,2535
1998
+ homeassistant-stubs/components/shelly/binary_sensor.pyi,sha256=4sI8wUeAEdXYdiA4sHpadQivgk05ryojhTEiYGy8nyU,4103
1999
1999
  homeassistant-stubs/components/shelly/bluetooth/__init__.pyi,sha256=TtiWeCif1sx6-4CGuFR6rbDXVG3nYYz1hfR4lOnX8ZA,634
2000
2000
  homeassistant-stubs/components/shelly/bluetooth/scanner.pyi,sha256=ibwU2wjCin9VPt58gFxx_5we5kcSZ0dnH8nRZp4mvc0,347
2001
2001
  homeassistant-stubs/components/shelly/button.pyi,sha256=1qCVY4e8-q8235vv0T4EtlG2xS0xtohK2cg07b7CneQ,2879
2002
2002
  homeassistant-stubs/components/shelly/climate.pyi,sha256=NhYtsdVl_8qfzP3uu-ZBbXpKgIrlbqxGF9cPJIUMt-Y,5439
2003
2003
  homeassistant-stubs/components/shelly/config_flow.pyi,sha256=ny7KjgQlRnuz1tE_r9BIgvEn4wzhzcYgxIMAo3WIUus,3080
2004
- homeassistant-stubs/components/shelly/const.pyi,sha256=MCR17ZyLn9d6F3Z6kwMv6Liw4DrvgDAa_oH2Nnz0lQs,2108
2004
+ homeassistant-stubs/components/shelly/const.pyi,sha256=izH12xXo1DNgH1xzgZ4J7c7x-N8k1YebInvxiumf8BA,2221
2005
2005
  homeassistant-stubs/components/shelly/coordinator.pyi,sha256=c9Ti-LXbnVUd52SPeHqGNW3uIa4TEB3QbsUgsFZU_fM,6717
2006
2006
  homeassistant-stubs/components/shelly/cover.pyi,sha256=jD8tHiY_1gmiiNvR-NiF4Y1ecA-E-GdWaT6uFC8FEsc,2786
2007
2007
  homeassistant-stubs/components/shelly/device_trigger.pyi,sha256=pXIeDnIMtGs_ZkJV8fvJG8kYkaTrZ6RW7YnCjKWxZNE,1988
2008
2008
  homeassistant-stubs/components/shelly/diagnostics.pyi,sha256=tylnHfNliUxiw2sC_ycJRxg6ShUEYZNlYTKZjWWQLmo,733
2009
- homeassistant-stubs/components/shelly/entity.pyi,sha256=29_t3t03ROFakzU4Ow6mOAQjlM43ILE2FtGTb5ppEnk,9002
2009
+ homeassistant-stubs/components/shelly/entity.pyi,sha256=2nhk3Cy1mZiuBbHyqz0y4cJRoQMIdM-D_4jB7A-LFWQ,8765
2010
2010
  homeassistant-stubs/components/shelly/event.pyi,sha256=4cUT3S9t3IFoMMgFwKQIWRSuGtDp0SbJzlsZaMm76xQ,3478
2011
2011
  homeassistant-stubs/components/shelly/light.pyi,sha256=nZej4TxQkEa6RJNvnrc9aEuOUysqMSNBmYum4f4y6ig,4089
2012
2012
  homeassistant-stubs/components/shelly/logbook.pyi,sha256=Tyg-NqquagNlOHxhEV_cCs5kk9G38dYResAzZhFBpN0,994
2013
- homeassistant-stubs/components/shelly/number.pyi,sha256=30sCn7n0lpCYJv-YQN3YDbvtJ4JKYQfAj5RlwR8Rs_M,2729
2014
- homeassistant-stubs/components/shelly/sensor.pyi,sha256=GXgqhUmC3SxJoLNStupO5JG_ntFuMKiIZ0t-BHWZSxI,6074
2013
+ homeassistant-stubs/components/shelly/number.pyi,sha256=_UY1pigfewEsmtfjv1G-CNJSQZazr6aMA9VLrWmw26c,2538
2014
+ homeassistant-stubs/components/shelly/sensor.pyi,sha256=Uo2grxyWho3g7an2_DCUvMrL69lv6sWhA0M5dnDr-Hw,5814
2015
2015
  homeassistant-stubs/components/shelly/switch.pyi,sha256=xwSr4tSU9zba_baQochAFSOmwFRSZFGsgz1XaH6Otsg,3795
2016
2016
  homeassistant-stubs/components/shelly/update.pyi,sha256=tLbPlYSmYIIh5bD8OHOSe32H3ToyuliHuG-WbekY7UI,4901
2017
2017
  homeassistant-stubs/components/shelly/utils.pyi,sha256=fDE_ZWExR9DRETtJKg7GAcDt1apRCu_FVxpMdDBA1KU,3941
@@ -2196,7 +2196,7 @@ homeassistant-stubs/components/systemmonitor/__init__.pyi,sha256=jDeheyONB8LWA_a
2196
2196
  homeassistant-stubs/components/systemmonitor/config_flow.pyi,sha256=pswJfZZO1OvqXy6RMWB6cCajtp3241gP0bnYIqM3WvU,1693
2197
2197
  homeassistant-stubs/components/systemmonitor/const.pyi,sha256=j6nu_Hbmsebf2A7wmtl1HUlAPmxInGjxpVtaEc6SlT0,106
2198
2198
  homeassistant-stubs/components/systemmonitor/sensor.pyi,sha256=YKLLC1H4_v9cgC8EgS7uhtSchXPcZ1tqLPyQovUPVas,4703
2199
- homeassistant-stubs/components/systemmonitor/util.pyi,sha256=AdgTRRek1j8JnVAWIRM99pUajIMnI7Nl--LsQA1lzfA,197
2199
+ homeassistant-stubs/components/systemmonitor/util.pyi,sha256=50bNGuxD5h57kOvKv8-Wxsuysd-9VO8pmnb2C9vIHn8,225
2200
2200
  homeassistant-stubs/components/tag/__init__.pyi,sha256=z2O1d3-5hBUxH8rshzxWmsX2uIglLKhx4ZiJZUAWWPY,1548
2201
2201
  homeassistant-stubs/components/tag/const.pyi,sha256=0VTm_mU5S5D-d7eLR76Gx_uq1NnEed5aJCuPng0rLgI,62
2202
2202
  homeassistant-stubs/components/tag/trigger.pyi,sha256=Qc6KBk5exjqWqYLdXahuNtOk6yVQOM_I5STpXfQz3ac,696
@@ -2759,7 +2759,7 @@ homeassistant-stubs/util/yaml/dumper.pyi,sha256=jFcwagnGj4ygvqVGNXDI5Afa9wRM0qOA
2759
2759
  homeassistant-stubs/util/yaml/input.pyi,sha256=wuxpKYTXZL4MujFhqjHnRLv4VPYY6QPYd-Zji-Lz9Mo,383
2760
2760
  homeassistant-stubs/util/yaml/loader.pyi,sha256=rpwKMMMMYynwcs_IWf0ZvKVp6zoqDJghwROm1p03Jzs,4125
2761
2761
  homeassistant-stubs/util/yaml/objects.pyi,sha256=89c0boOGMdQvHxVk7Xs42DKMj3ldlozxjrpiV74RkGY,457
2762
- homeassistant_stubs-2024.1.3.dist-info/WHEEL,sha256=vVCvjcmxuUltf8cYhJ0sJMRDLr1XsPuxEId8YDzbyCY,88
2763
- homeassistant_stubs-2024.1.3.dist-info/LICENSE,sha256=_kHFjg-MAmJ-lXc7HiEjUzD3vZutVYKUVZZpAWcIuqo,1075
2764
- homeassistant_stubs-2024.1.3.dist-info/METADATA,sha256=76MbWOD5b0h0XaQVd8H0VSufkqx3FMnTedANuSRldO0,3062
2765
- homeassistant_stubs-2024.1.3.dist-info/RECORD,,
2762
+ homeassistant_stubs-2024.1.4.dist-info/WHEEL,sha256=vVCvjcmxuUltf8cYhJ0sJMRDLr1XsPuxEId8YDzbyCY,88
2763
+ homeassistant_stubs-2024.1.4.dist-info/LICENSE,sha256=_kHFjg-MAmJ-lXc7HiEjUzD3vZutVYKUVZZpAWcIuqo,1075
2764
+ homeassistant_stubs-2024.1.4.dist-info/METADATA,sha256=8nUCaKP5zM7US4M28LorJXES3wwLQBJWzrxDyWnP1EU,3062
2765
+ homeassistant_stubs-2024.1.4.dist-info/RECORD,,