Skip to content

Commit

Permalink
Generate v2023.9.2
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Sep 13, 2023
1 parent 3ab93d1 commit 2de733e
Show file tree
Hide file tree
Showing 12 changed files with 116 additions and 30 deletions.
2 changes: 1 addition & 1 deletion homeassistant-stubs/components/cloud/__init__.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from . import account_link as account_link, http_api as http_api
from .client import CloudClient as CloudClient
from .const import CONF_ACCOUNTS_SERVER as CONF_ACCOUNTS_SERVER, CONF_ACCOUNT_LINK_SERVER as CONF_ACCOUNT_LINK_SERVER, CONF_ACME_SERVER as CONF_ACME_SERVER, CONF_ALEXA as CONF_ALEXA, CONF_ALEXA_SERVER as CONF_ALEXA_SERVER, CONF_ALIASES as CONF_ALIASES, CONF_CLOUDHOOK_SERVER as CONF_CLOUDHOOK_SERVER, CONF_COGNITO_CLIENT_ID as CONF_COGNITO_CLIENT_ID, CONF_ENTITY_CONFIG as CONF_ENTITY_CONFIG, CONF_FILTER as CONF_FILTER, CONF_GOOGLE_ACTIONS as CONF_GOOGLE_ACTIONS, CONF_RELAYER_SERVER as CONF_RELAYER_SERVER, CONF_REMOTESTATE_SERVER as CONF_REMOTESTATE_SERVER, CONF_REMOTE_SNI_SERVER as CONF_REMOTE_SNI_SERVER, CONF_SERVICEHANDLERS_SERVER as CONF_SERVICEHANDLERS_SERVER, CONF_THINGTALK_SERVER as CONF_THINGTALK_SERVER, CONF_USER_POOL_ID as CONF_USER_POOL_ID, DOMAIN as DOMAIN, MODE_DEV as MODE_DEV, MODE_PROD as MODE_PROD
from .const import CONF_ACCOUNTS_SERVER as CONF_ACCOUNTS_SERVER, CONF_ACCOUNT_LINK_SERVER as CONF_ACCOUNT_LINK_SERVER, CONF_ACME_SERVER as CONF_ACME_SERVER, CONF_ALEXA as CONF_ALEXA, CONF_ALEXA_SERVER as CONF_ALEXA_SERVER, CONF_ALIASES as CONF_ALIASES, CONF_CLOUDHOOK_SERVER as CONF_CLOUDHOOK_SERVER, CONF_COGNITO_CLIENT_ID as CONF_COGNITO_CLIENT_ID, CONF_ENTITY_CONFIG as CONF_ENTITY_CONFIG, CONF_FILTER as CONF_FILTER, CONF_GOOGLE_ACTIONS as CONF_GOOGLE_ACTIONS, CONF_RELAYER_SERVER as CONF_RELAYER_SERVER, CONF_REMOTESTATE_SERVER as CONF_REMOTESTATE_SERVER, CONF_SERVICEHANDLERS_SERVER as CONF_SERVICEHANDLERS_SERVER, CONF_THINGTALK_SERVER as CONF_THINGTALK_SERVER, CONF_USER_POOL_ID as CONF_USER_POOL_ID, DOMAIN as DOMAIN, MODE_DEV as MODE_DEV, MODE_PROD as MODE_PROD
from .prefs import CloudPreferences as CloudPreferences
from .repairs import async_manage_legacy_subscription_issue as async_manage_legacy_subscription_issue
from .subscription import async_subscription_info as async_subscription_info
Expand Down
1 change: 0 additions & 1 deletion homeassistant-stubs/components/cloud/const.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ CONF_ACME_SERVER: str
CONF_ALEXA_SERVER: str
CONF_CLOUDHOOK_SERVER: str
CONF_RELAYER_SERVER: str
CONF_REMOTE_SNI_SERVER: str
CONF_REMOTESTATE_SERVER: str
CONF_THINGTALK_SERVER: str
CONF_SERVICEHANDLERS_SERVER: str
Expand Down
2 changes: 1 addition & 1 deletion homeassistant-stubs/components/fritz/common.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ class FritzBoxBaseEntity:
def device_info(self) -> DeviceInfo: ...

class FritzRequireKeysMixin:
value_fn: Callable[[FritzStatus, Any], Any]
value_fn: Callable[[FritzStatus, Any], Any] | None
def __init__(self, value_fn) -> None: ...

class FritzEntityDescription(EntityDescription, FritzRequireKeysMixin):
Expand Down
14 changes: 9 additions & 5 deletions homeassistant-stubs/components/fritz/update.pyi
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
from .common import AvmWrapper as AvmWrapper, FritzBoxBaseEntity as FritzBoxBaseEntity
from .common import AvmWrapper as AvmWrapper, FritzBoxBaseCoordinatorEntity as FritzBoxBaseCoordinatorEntity, FritzEntityDescription as FritzEntityDescription
from .const import DOMAIN as DOMAIN
from _typeshed import Incomplete
from homeassistant.components.update import UpdateEntity as UpdateEntity, UpdateEntityFeature as UpdateEntityFeature
from homeassistant.components.update import UpdateEntity as UpdateEntity, UpdateEntityDescription as UpdateEntityDescription, UpdateEntityFeature as UpdateEntityFeature
from homeassistant.config_entries import ConfigEntry as ConfigEntry
from homeassistant.const import EntityCategory as EntityCategory
from homeassistant.core import HomeAssistant as HomeAssistant
from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
from typing import Any

_LOGGER: Incomplete

class FritzUpdateEntityDescription(UpdateEntityDescription, FritzEntityDescription):
def __init__(self, value_fn, key, device_class, entity_category, entity_registry_enabled_default, entity_registry_visible_default, force_update, icon, has_entity_name, name, translation_key, unit_of_measurement) -> None: ...

async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry, async_add_entities: AddEntitiesCallback) -> None: ...

class FritzBoxUpdateEntity(FritzBoxBaseEntity, UpdateEntity):
class FritzBoxUpdateEntity(FritzBoxBaseCoordinatorEntity, UpdateEntity):
_attr_entity_category: Incomplete
_attr_supported_features: Incomplete
_attr_title: str
_attr_name: Incomplete
_attr_unique_id: Incomplete
entity_description: FritzUpdateEntityDescription
def __init__(self, avm_wrapper: AvmWrapper, device_friendly_name: str) -> None: ...
@property
def installed_version(self) -> str | None: ...
Expand Down
1 change: 1 addition & 0 deletions homeassistant-stubs/components/ipp/config_flow.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ class IPPFlowHandler(ConfigFlow, domain=DOMAIN):
def __init__(self) -> None: ...
async def async_step_user(self, user_input: dict[str, Any] | None = ...) -> FlowResult: ...
async def async_step_zeroconf(self, discovery_info: zeroconf.ZeroconfServiceInfo) -> FlowResult: ...
async def _async_set_unique_id_and_abort_if_already_configured(self, unique_id: str) -> None: ...
async def async_step_zeroconf_confirm(self, user_input: dict[str, Any] | None = ...) -> FlowResult: ...
def _show_setup_form(self, errors: dict | None = ...) -> FlowResult: ...
4 changes: 2 additions & 2 deletions homeassistant-stubs/components/modbus/base_platform.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import abc
from .const import ACTIVE_SCAN_INTERVAL as ACTIVE_SCAN_INTERVAL, CALL_TYPE_COIL as CALL_TYPE_COIL, CALL_TYPE_DISCRETE as CALL_TYPE_DISCRETE, CALL_TYPE_REGISTER_HOLDING as CALL_TYPE_REGISTER_HOLDING, CALL_TYPE_REGISTER_INPUT as CALL_TYPE_REGISTER_INPUT, CALL_TYPE_WRITE_COIL as CALL_TYPE_WRITE_COIL, CALL_TYPE_WRITE_COILS as CALL_TYPE_WRITE_COILS, CALL_TYPE_WRITE_REGISTER as CALL_TYPE_WRITE_REGISTER, CALL_TYPE_WRITE_REGISTERS as CALL_TYPE_WRITE_REGISTERS, CALL_TYPE_X_COILS as CALL_TYPE_X_COILS, CALL_TYPE_X_REGISTER_HOLDINGS as CALL_TYPE_X_REGISTER_HOLDINGS, CONF_DATA_TYPE as CONF_DATA_TYPE, CONF_INPUT_TYPE as CONF_INPUT_TYPE, CONF_LAZY_ERROR as CONF_LAZY_ERROR, CONF_MAX_VALUE as CONF_MAX_VALUE, CONF_MIN_VALUE as CONF_MIN_VALUE, CONF_NAN_VALUE as CONF_NAN_VALUE, CONF_PRECISION as CONF_PRECISION, CONF_SCALE as CONF_SCALE, CONF_SLAVE_COUNT as CONF_SLAVE_COUNT, CONF_STATE_OFF as CONF_STATE_OFF, CONF_STATE_ON as CONF_STATE_ON, CONF_SWAP as CONF_SWAP, CONF_SWAP_BYTE as CONF_SWAP_BYTE, CONF_SWAP_NONE as CONF_SWAP_NONE, CONF_SWAP_WORD as CONF_SWAP_WORD, CONF_SWAP_WORD_BYTE as CONF_SWAP_WORD_BYTE, CONF_VERIFY as CONF_VERIFY, CONF_WRITE_TYPE as CONF_WRITE_TYPE, CONF_ZERO_SUPPRESS as CONF_ZERO_SUPPRESS, DataType as DataType, SIGNAL_START_ENTITY as SIGNAL_START_ENTITY, SIGNAL_STOP_ENTITY as SIGNAL_STOP_ENTITY
from .const import CALL_TYPE_COIL as CALL_TYPE_COIL, CALL_TYPE_DISCRETE as CALL_TYPE_DISCRETE, CALL_TYPE_REGISTER_HOLDING as CALL_TYPE_REGISTER_HOLDING, CALL_TYPE_REGISTER_INPUT as CALL_TYPE_REGISTER_INPUT, CALL_TYPE_WRITE_COIL as CALL_TYPE_WRITE_COIL, CALL_TYPE_WRITE_COILS as CALL_TYPE_WRITE_COILS, CALL_TYPE_WRITE_REGISTER as CALL_TYPE_WRITE_REGISTER, CALL_TYPE_WRITE_REGISTERS as CALL_TYPE_WRITE_REGISTERS, CALL_TYPE_X_COILS as CALL_TYPE_X_COILS, CALL_TYPE_X_REGISTER_HOLDINGS as CALL_TYPE_X_REGISTER_HOLDINGS, CONF_DATA_TYPE as CONF_DATA_TYPE, CONF_INPUT_TYPE as CONF_INPUT_TYPE, CONF_LAZY_ERROR as CONF_LAZY_ERROR, CONF_MAX_VALUE as CONF_MAX_VALUE, CONF_MIN_VALUE as CONF_MIN_VALUE, CONF_NAN_VALUE as CONF_NAN_VALUE, CONF_PRECISION as CONF_PRECISION, CONF_SCALE as CONF_SCALE, CONF_SLAVE_COUNT as CONF_SLAVE_COUNT, CONF_STATE_OFF as CONF_STATE_OFF, CONF_STATE_ON as CONF_STATE_ON, CONF_SWAP as CONF_SWAP, CONF_SWAP_BYTE as CONF_SWAP_BYTE, CONF_SWAP_NONE as CONF_SWAP_NONE, CONF_SWAP_WORD as CONF_SWAP_WORD, CONF_SWAP_WORD_BYTE as CONF_SWAP_WORD_BYTE, CONF_VERIFY as CONF_VERIFY, CONF_WRITE_TYPE as CONF_WRITE_TYPE, CONF_ZERO_SUPPRESS as CONF_ZERO_SUPPRESS, DataType as DataType, SIGNAL_START_ENTITY as SIGNAL_START_ENTITY, SIGNAL_STOP_ENTITY as SIGNAL_STOP_ENTITY
from .modbus import ModbusHub as ModbusHub
from _typeshed import Incomplete
from abc import abstractmethod
Expand Down Expand Up @@ -56,7 +56,7 @@ class BaseStructPlatform(BasePlatform, RestoreEntity, metaclass=abc.ABCMeta):
_slave_size: Incomplete
def __init__(self, hub: ModbusHub, config: dict) -> None: ...
def _swap_registers(self, registers: list[int], slave_count: int) -> list[int]: ...
def __process_raw_value(self, entry: float | int | str) -> float | int | str | None: ...
def __process_raw_value(self, entry: float | int | str | bytes) -> float | int | str | bytes | None: ...
def unpack_structure_result(self, registers: list[int]) -> str | None: ...

class BaseSwitch(BasePlatform, ToggleEntity, RestoreEntity):
Expand Down
2 changes: 2 additions & 0 deletions homeassistant-stubs/components/modbus/sensor.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ from homeassistant.components.sensor import CONF_STATE_CLASS as CONF_STATE_CLASS
from homeassistant.const import CONF_DEVICE_CLASS as CONF_DEVICE_CLASS, CONF_NAME as CONF_NAME, CONF_SENSORS as CONF_SENSORS, CONF_UNIQUE_ID as CONF_UNIQUE_ID, CONF_UNIT_OF_MEASUREMENT as CONF_UNIT_OF_MEASUREMENT
from homeassistant.core import HomeAssistant as HomeAssistant, callback as callback
from homeassistant.helpers.entity_platform import AddEntitiesCallback as AddEntitiesCallback
from homeassistant.helpers.event import async_call_later as async_call_later
from homeassistant.helpers.typing import ConfigType as ConfigType, DiscoveryInfoType as DiscoveryInfoType
from homeassistant.helpers.update_coordinator import CoordinatorEntity as CoordinatorEntity, DataUpdateCoordinator as DataUpdateCoordinator
from typing import Any
Expand All @@ -27,6 +28,7 @@ class ModbusRegisterSensor(BaseStructPlatform, RestoreSensor, SensorEntity):
async def async_setup_slaves(self, hass: HomeAssistant, slave_count: int, entry: dict[str, Any]) -> list[SlaveSensor]: ...
_attr_native_value: Incomplete
async def async_added_to_hass(self) -> None: ...
_cancel_call: Incomplete
_lazy_errors: Incomplete
_attr_available: bool
async def async_update(self, now: datetime | None = ...) -> None: ...
Expand Down
4 changes: 2 additions & 2 deletions homeassistant-stubs/components/unifi/device_tracker.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def async_device_heartbeat_timedelta_fn(controller: UniFiController, obj_id: str

class UnifiEntityTrackerDescriptionMixin(Generic[HandlerT, ApiItemT]):
heartbeat_timedelta_fn: Callable[[UniFiController, str], timedelta]
ip_address_fn: Callable[[aiounifi.Controller, str], str]
ip_address_fn: Callable[[aiounifi.Controller, str], str | None]
is_connected_fn: Callable[[UniFiController, str], bool]
hostname_fn: Callable[[aiounifi.Controller, str], str | None]
def __init__(self, heartbeat_timedelta_fn, ip_address_fn, is_connected_fn, hostname_fn) -> None: ...
Expand All @@ -54,7 +54,7 @@ class UnifiScannerEntity(UnifiEntity[HandlerT, ApiItemT], ScannerEntity):
@property
def hostname(self) -> str | None: ...
@property
def ip_address(self) -> str: ...
def ip_address(self) -> str | None: ...
@property
def mac_address(self) -> str: ...
@property
Expand Down
5 changes: 2 additions & 3 deletions homeassistant-stubs/components/zwave_js/repairs.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@ from _typeshed import Incomplete
from homeassistant import data_entry_flow as data_entry_flow
from homeassistant.components.repairs import ConfirmRepairFlow as ConfirmRepairFlow, RepairsFlow as RepairsFlow
from homeassistant.core import HomeAssistant as HomeAssistant
from zwave_js_server.model.node import Node as Node

class DeviceConfigFileChangedFlow(RepairsFlow):
node: Incomplete
device_name: Incomplete
def __init__(self, node: Node, device_name: str) -> None: ...
device_id: Incomplete
def __init__(self, data: dict[str, str]) -> None: ...
async def async_step_init(self, user_input: dict[str, str] | None = ...) -> data_entry_flow.FlowResult: ...
async def async_step_confirm(self, user_input: dict[str, str] | None = ...) -> data_entry_flow.FlowResult: ...

Expand Down
2 changes: 1 addition & 1 deletion homeassistant_core
Submodule homeassistant_core updated 82 files
+50 −5 homeassistant/components/airthings_ble/sensor.py
+2 −2 homeassistant/components/bluetooth/manifest.json
+0 −2 homeassistant/components/cloud/__init__.py
+0 −1 homeassistant/components/cloud/const.py
+1 −1 homeassistant/components/cloud/manifest.json
+1 −2 homeassistant/components/comelit/coordinator.py
+1 −1 homeassistant/components/electric_kiwi/coordinator.py
+1 −1 homeassistant/components/enphase_envoy/strings.json
+7 −4 homeassistant/components/fritz/common.py
+26 −12 homeassistant/components/fritz/update.py
+1 −1 homeassistant/components/frontend/manifest.json
+4 −1 homeassistant/components/hassio/__init__.py
+24 −12 homeassistant/components/ipp/config_flow.py
+1 −1 homeassistant/components/landisgyr_heat_meter/manifest.json
+18 −13 homeassistant/components/modbus/base_platform.py
+1 −1 homeassistant/components/modbus/manifest.json
+6 −1 homeassistant/components/modbus/sensor.py
+5 −0 homeassistant/components/mqtt/mixins.py
+1 −1 homeassistant/components/plugwise/manifest.json
+9 −4 homeassistant/components/plugwise/number.py
+1 −1 homeassistant/components/python_script/manifest.json
+1 −1 homeassistant/components/roborock/manifest.json
+8 −1 homeassistant/components/soma/cover.py
+1 −1 homeassistant/components/system_bridge/manifest.json
+1 −1 homeassistant/components/tasmota/manifest.json
+7 −12 homeassistant/components/tasmota/sensor.py
+1 −2 homeassistant/components/template/trigger_entity.py
+2 −2 homeassistant/components/unifi/device_tracker.py
+1 −1 homeassistant/components/unifi/manifest.json
+1 −1 homeassistant/components/vodafone_station/manifest.json
+1 −1 homeassistant/components/waze_travel_time/manifest.json
+41 −6 homeassistant/components/zha/__init__.py
+1 −0 homeassistant/components/zha/core/const.py
+11 −10 homeassistant/components/zha/core/device.py
+20 −28 homeassistant/components/zha/core/gateway.py
+50 −43 homeassistant/components/zha/device_trigger.py
+2 −2 homeassistant/components/zha/manifest.json
+25 −8 homeassistant/components/zha/radio_manager.py
+1 −1 homeassistant/components/zwave_js/manifest.json
+13 −11 homeassistant/components/zwave_js/repairs.py
+3 −0 homeassistant/components/zwave_js/strings.json
+1 −1 homeassistant/const.py
+4 −4 homeassistant/package_constraints.txt
+1 −1 pyproject.toml
+17 −17 requirements_all.txt
+17 −17 requirements_test_all.txt
+102 −6 tests/components/airthings_ble/__init__.py
+213 −0 tests/components/airthings_ble/test_sensor.py
+0 −1 tests/components/cloud/test_init.py
+30 −19 tests/components/fritz/test_update.py
+35 −0 tests/components/hassio/test_init.py
+1 −1 tests/components/homeassistant_hardware/conftest.py
+1 −1 tests/components/homeassistant_sky_connect/conftest.py
+1 −1 tests/components/homeassistant_sky_connect/test_init.py
+1 −1 tests/components/homeassistant_yellow/conftest.py
+35 −0 tests/components/ipp/fixtures/printer_without_uuid.json
+101 −2 tests/components/ipp/test_config_flow.py
+1 −1 tests/components/modbus/conftest.py
+121 −15 tests/components/modbus/test_sensor.py
+59 −1 tests/components/mqtt/test_mixins.py
+48 −0 tests/components/plugwise/fixtures/adam_jip/all_data.json
+54 −0 tests/components/plugwise/fixtures/adam_multiple_devices_per_zone/all_data.json
+6 −0 tests/components/plugwise/fixtures/anna_heatpump_heating/all_data.json
+12 −0 tests/components/plugwise/fixtures/m_adam_cooling/all_data.json
+12 −0 tests/components/plugwise/fixtures/m_adam_heating/all_data.json
+6 −0 tests/components/plugwise/fixtures/m_anna_heatpump_cooling/all_data.json
+6 −0 tests/components/plugwise/fixtures/m_anna_heatpump_idle/all_data.json
+6 −2 tests/components/plugwise/fixtures/p1v4_442_triple/all_data.json
+5 −1 tests/components/plugwise/fixtures/p1v4_442_triple/notifications.json
+0 −9 tests/components/plugwise/fixtures/stretch_v31/all_data.json
+301 −247 tests/components/plugwise/test_diagnostics.py
+2 −2 tests/components/plugwise/test_number.py
+32 −0 tests/components/tasmota/test_light.py
+214 −0 tests/components/tasmota/test_sensor.py
+32 −0 tests/components/tasmota/test_switch.py
+43 −1 tests/components/template/test_sensor.py
+21 −4 tests/components/zha/conftest.py
+0 −7 tests/components/zha/test_config_flow.py
+120 −10 tests/components/zha/test_device_trigger.py
+5 −11 tests/components/zha/test_init.py
+2 −4 tests/components/zha/test_radio_manager.py
+64 −10 tests/components/zwave_js/test_repairs.py
Loading

0 comments on commit 2de733e

Please sign in to comment.