From 21baf50fc9f989d21e8fdfa140f95fb5956eef0f Mon Sep 17 00:00:00 2001 From: Dennis Schroer Date: Thu, 3 Nov 2022 12:53:58 +0100 Subject: [PATCH 01/10] Update energyflip-client dependency to 0.2.2 (#81426) --- homeassistant/components/huisbaasje/manifest.json | 2 +- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/huisbaasje/manifest.json b/homeassistant/components/huisbaasje/manifest.json index 2963a82512b..47d47da182b 100644 --- a/homeassistant/components/huisbaasje/manifest.json +++ b/homeassistant/components/huisbaasje/manifest.json @@ -3,7 +3,7 @@ "name": "Huisbaasje", "config_flow": true, "documentation": "https://www.home-assistant.io/integrations/huisbaasje", - "requirements": ["energyflip-client==0.2.1"], + "requirements": ["energyflip-client==0.2.2"], "codeowners": ["@dennisschroer"], "iot_class": "cloud_polling", "loggers": ["huisbaasje"] diff --git a/requirements_all.txt b/requirements_all.txt index bb2e4308e48..06def1c34d6 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -623,7 +623,7 @@ elmax_api==0.0.2 emulated_roku==0.2.1 # homeassistant.components.huisbaasje -energyflip-client==0.2.1 +energyflip-client==0.2.2 # homeassistant.components.enocean enocean==0.50 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index a78ce61f213..0c784df961c 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -476,7 +476,7 @@ elmax_api==0.0.2 emulated_roku==0.2.1 # homeassistant.components.huisbaasje -energyflip-client==0.2.1 +energyflip-client==0.2.2 # homeassistant.components.enocean enocean==0.50 From 32c5248ddbb8781b9fe2071c5d56eca2fe209879 Mon Sep 17 00:00:00 2001 From: Austin Brunkhorst Date: Wed, 2 Nov 2022 19:10:07 -0700 Subject: [PATCH 02/10] Update pysnooz to 0.8.3 (#81428) --- homeassistant/components/snooz/config_flow.py | 2 +- homeassistant/components/snooz/manifest.json | 2 +- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- tests/components/snooz/{test_config.py => test_init.py} | 0 5 files changed, 4 insertions(+), 4 deletions(-) rename tests/components/snooz/{test_config.py => test_init.py} (100%) diff --git a/homeassistant/components/snooz/config_flow.py b/homeassistant/components/snooz/config_flow.py index 48f9370e403..eb05edcbefa 100644 --- a/homeassistant/components/snooz/config_flow.py +++ b/homeassistant/components/snooz/config_flow.py @@ -82,7 +82,7 @@ class SnoozConfigFlow(ConfigFlow, domain=DOMAIN): if user_input is not None: name = user_input[CONF_NAME] - discovered = self._discovered_devices.get(name) + discovered = self._discovered_devices[name] assert discovered is not None diff --git a/homeassistant/components/snooz/manifest.json b/homeassistant/components/snooz/manifest.json index 1384767e8b8..91185bcd5b2 100644 --- a/homeassistant/components/snooz/manifest.json +++ b/homeassistant/components/snooz/manifest.json @@ -3,7 +3,7 @@ "name": "Snooz", "config_flow": true, "documentation": "https://www.home-assistant.io/integrations/snooz", - "requirements": ["pysnooz==0.8.2"], + "requirements": ["pysnooz==0.8.3"], "dependencies": ["bluetooth"], "codeowners": ["@AustinBrunkhorst"], "bluetooth": [ diff --git a/requirements_all.txt b/requirements_all.txt index 06def1c34d6..29e72b4a292 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -1911,7 +1911,7 @@ pysml==0.0.8 pysnmplib==5.0.15 # homeassistant.components.snooz -pysnooz==0.8.2 +pysnooz==0.8.3 # homeassistant.components.soma pysoma==0.0.10 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 0c784df961c..e698890ca02 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -1346,7 +1346,7 @@ pysmartthings==0.7.6 pysnmplib==5.0.15 # homeassistant.components.snooz -pysnooz==0.8.2 +pysnooz==0.8.3 # homeassistant.components.soma pysoma==0.0.10 diff --git a/tests/components/snooz/test_config.py b/tests/components/snooz/test_init.py similarity index 100% rename from tests/components/snooz/test_config.py rename to tests/components/snooz/test_init.py From e25cf0b338d80716bfc54fca29bd9c61bef29e7a Mon Sep 17 00:00:00 2001 From: Raman Gupta <7243222+raman325@users.noreply.github.com> Date: Thu, 3 Nov 2022 04:43:48 -0400 Subject: [PATCH 03/10] Fix eight sleep client creation (#81440) Fix eight sleep bug --- homeassistant/components/eight_sleep/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/eight_sleep/__init__.py b/homeassistant/components/eight_sleep/__init__.py index 67ff6c59a54..2642505fbea 100644 --- a/homeassistant/components/eight_sleep/__init__.py +++ b/homeassistant/components/eight_sleep/__init__.py @@ -95,7 +95,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: entry.data[CONF_USERNAME], entry.data[CONF_PASSWORD], hass.config.time_zone, - async_get_clientsession(hass), + client_session=async_get_clientsession(hass), ) # Authenticate, build sensors From 632231912e494cff7a89b53c9c027de9999cc0da Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 3 Nov 2022 08:51:08 +0100 Subject: [PATCH 04/10] Skip flume devices with location missing (#81441) fixes #81438 --- homeassistant/components/flume/util.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/flume/util.py b/homeassistant/components/flume/util.py index b943124b877..58b3920c9be 100644 --- a/homeassistant/components/flume/util.py +++ b/homeassistant/components/flume/util.py @@ -14,5 +14,6 @@ def get_valid_flume_devices(flume_devices: FlumeDeviceList) -> list[dict[str, An return [ device for device in flume_devices.device_list - if KEY_DEVICE_LOCATION_NAME in device[KEY_DEVICE_LOCATION] + if KEY_DEVICE_LOCATION in device + and KEY_DEVICE_LOCATION_NAME in device[KEY_DEVICE_LOCATION] ] From 758e06b4b6d36aeb8ceeb9e954dd80fd1ebae281 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Thu, 3 Nov 2022 11:13:23 +0100 Subject: [PATCH 05/10] Fix SSDP failure to start on missing URLs (#81453) --- homeassistant/components/ssdp/__init__.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/ssdp/__init__.py b/homeassistant/components/ssdp/__init__.py index d081ef877de..8e037602b90 100644 --- a/homeassistant/components/ssdp/__init__.py +++ b/homeassistant/components/ssdp/__init__.py @@ -52,7 +52,7 @@ from homeassistant.helpers import discovery_flow from homeassistant.helpers.aiohttp_client import async_get_clientsession from homeassistant.helpers.event import async_track_time_interval from homeassistant.helpers.instance_id import async_get as async_get_instance_id -from homeassistant.helpers.network import get_url +from homeassistant.helpers.network import NoURLAvailableError, get_url from homeassistant.helpers.system_info import async_get_system_info from homeassistant.helpers.typing import ConfigType from homeassistant.loader import async_get_ssdp, bind_hass @@ -697,7 +697,16 @@ class Server: udn = await self._async_get_instance_udn() system_info = await async_get_system_info(self.hass) model_name = system_info["installation_type"] - presentation_url = get_url(self.hass, allow_ip=True, prefer_external=False) + try: + presentation_url = get_url(self.hass, allow_ip=True, prefer_external=False) + except NoURLAvailableError: + _LOGGER.warning( + "Could not set up UPnP/SSDP server, as a presentation URL could" + " not be determined; Please configure your internal URL" + " in the Home Assistant general configuration" + ) + return + serial_number = await async_get_instance_id(self.hass) HassUpnpServiceDevice.DEVICE_DEFINITION = ( HassUpnpServiceDevice.DEVICE_DEFINITION._replace( From d4b7c00ed6e843694e49a3285cc68fd2187f0619 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 3 Nov 2022 11:14:01 +0100 Subject: [PATCH 06/10] Bump aiohomekit to 2.2.14 (#81454) --- homeassistant/components/homekit_controller/manifest.json | 2 +- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/homekit_controller/manifest.json b/homeassistant/components/homekit_controller/manifest.json index 18884d59307..b2aec75c3ad 100644 --- a/homeassistant/components/homekit_controller/manifest.json +++ b/homeassistant/components/homekit_controller/manifest.json @@ -3,7 +3,7 @@ "name": "HomeKit Controller", "config_flow": true, "documentation": "https://www.home-assistant.io/integrations/homekit_controller", - "requirements": ["aiohomekit==2.2.13"], + "requirements": ["aiohomekit==2.2.14"], "zeroconf": ["_hap._tcp.local.", "_hap._udp.local."], "bluetooth": [{ "manufacturer_id": 76, "manufacturer_data_start": [6] }], "dependencies": ["bluetooth", "zeroconf"], diff --git a/requirements_all.txt b/requirements_all.txt index 29e72b4a292..c5ab246a560 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -171,7 +171,7 @@ aioguardian==2022.07.0 aioharmony==0.2.9 # homeassistant.components.homekit_controller -aiohomekit==2.2.13 +aiohomekit==2.2.14 # homeassistant.components.emulated_hue # homeassistant.components.http diff --git a/requirements_test_all.txt b/requirements_test_all.txt index e698890ca02..9a0c2a8d8ea 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -155,7 +155,7 @@ aioguardian==2022.07.0 aioharmony==0.2.9 # homeassistant.components.homekit_controller -aiohomekit==2.2.13 +aiohomekit==2.2.14 # homeassistant.components.emulated_hue # homeassistant.components.http From 8cb4e8452d59c20a7ab8b0ea852a84bc534288a0 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Thu, 3 Nov 2022 11:18:25 +0100 Subject: [PATCH 07/10] Update cryptography to 38.0.3 (#81455) --- homeassistant/package_constraints.txt | 2 +- pyproject.toml | 2 +- requirements.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/package_constraints.txt b/homeassistant/package_constraints.txt index 39158d63d55..53966a90141 100644 --- a/homeassistant/package_constraints.txt +++ b/homeassistant/package_constraints.txt @@ -16,7 +16,7 @@ bluetooth-adapters==0.6.0 bluetooth-auto-recovery==0.3.6 certifi>=2021.5.30 ciso8601==2.2.0 -cryptography==38.0.1 +cryptography==38.0.3 dbus-fast==1.61.1 fnvhash==0.1.0 hass-nabucasa==0.56.0 diff --git a/pyproject.toml b/pyproject.toml index b41ac861aca..f68f6e450be 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,7 +42,7 @@ dependencies = [ "lru-dict==1.1.8", "PyJWT==2.5.0", # PyJWT has loose dependency. We want the latest one. - "cryptography==38.0.1", + "cryptography==38.0.3", "orjson==3.8.1", "pip>=21.0,<22.4", "python-slugify==4.0.1", diff --git a/requirements.txt b/requirements.txt index 962a9d59dc6..96a9f801df9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -16,7 +16,7 @@ ifaddr==0.1.7 jinja2==3.1.2 lru-dict==1.1.8 PyJWT==2.5.0 -cryptography==38.0.1 +cryptography==38.0.3 orjson==3.8.1 pip>=21.0,<22.4 python-slugify==4.0.1 From 48edd54e622906b447aa22314c01c8b64206f780 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 3 Nov 2022 14:49:12 +0100 Subject: [PATCH 08/10] Fix HomeKit thermostat to take priority over fans (#81473) --- homeassistant/components/homekit/type_thermostats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/homekit/type_thermostats.py b/homeassistant/components/homekit/type_thermostats.py index a924548816b..a8c7a53718a 100644 --- a/homeassistant/components/homekit/type_thermostats.py +++ b/homeassistant/components/homekit/type_thermostats.py @@ -306,7 +306,7 @@ class Thermostat(HomeAccessory): if attributes.get(ATTR_HVAC_ACTION) is not None: self.fan_chars.append(CHAR_CURRENT_FAN_STATE) serv_fan = self.add_preload_service(SERV_FANV2, self.fan_chars) - serv_thermostat.add_linked_service(serv_fan) + serv_fan.add_linked_service(serv_thermostat) self.char_active = serv_fan.configure_char( CHAR_ACTIVE, value=1, setter_callback=self._set_fan_active ) From 8cbe3036774b4c16b1488433ae5e7e8de26d3b2f Mon Sep 17 00:00:00 2001 From: mkmer Date: Thu, 3 Nov 2022 10:39:02 -0400 Subject: [PATCH 09/10] Bump AIOAladdinConnect to 0.1.47 (#81479) --- homeassistant/components/aladdin_connect/manifest.json | 2 +- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/aladdin_connect/manifest.json b/homeassistant/components/aladdin_connect/manifest.json index 50ab6af6f85..6888eb4d8b2 100644 --- a/homeassistant/components/aladdin_connect/manifest.json +++ b/homeassistant/components/aladdin_connect/manifest.json @@ -2,7 +2,7 @@ "domain": "aladdin_connect", "name": "Aladdin Connect", "documentation": "https://www.home-assistant.io/integrations/aladdin_connect", - "requirements": ["AIOAladdinConnect==0.1.46"], + "requirements": ["AIOAladdinConnect==0.1.47"], "codeowners": ["@mkmer"], "iot_class": "cloud_polling", "loggers": ["aladdin_connect"], diff --git a/requirements_all.txt b/requirements_all.txt index c5ab246a560..84d01bf2361 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -5,7 +5,7 @@ AEMET-OpenData==0.2.1 # homeassistant.components.aladdin_connect -AIOAladdinConnect==0.1.46 +AIOAladdinConnect==0.1.47 # homeassistant.components.adax Adax-local==0.1.5 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 9a0c2a8d8ea..3f27a3b75f9 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -7,7 +7,7 @@ AEMET-OpenData==0.2.1 # homeassistant.components.aladdin_connect -AIOAladdinConnect==0.1.46 +AIOAladdinConnect==0.1.47 # homeassistant.components.adax Adax-local==0.1.5 From dd004d62d49bc37aa3b69dc969e4f66051e82507 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Thu, 3 Nov 2022 17:00:47 +0100 Subject: [PATCH 10/10] Bumped version to 2022.11.1 --- homeassistant/const.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/const.py b/homeassistant/const.py index 5ba07ebf8fd..ef94db7e2b6 100644 --- a/homeassistant/const.py +++ b/homeassistant/const.py @@ -8,7 +8,7 @@ from .backports.enum import StrEnum APPLICATION_NAME: Final = "HomeAssistant" MAJOR_VERSION: Final = 2022 MINOR_VERSION: Final = 11 -PATCH_VERSION: Final = "0" +PATCH_VERSION: Final = "1" __short_version__: Final = f"{MAJOR_VERSION}.{MINOR_VERSION}" __version__: Final = f"{__short_version__}.{PATCH_VERSION}" REQUIRED_PYTHON_VER: Final[tuple[int, int, int]] = (3, 9, 0) diff --git a/pyproject.toml b/pyproject.toml index f68f6e450be..e616441fadd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "homeassistant" -version = "2022.11.0" +version = "2022.11.1" license = {text = "Apache-2.0"} description = "Open-source home automation platform running on Python 3." readme = "README.rst"