From a0518295d517467f650efd59e3912cdc7190c4d2 Mon Sep 17 00:00:00 2001 From: Sergio Oller Date: Tue, 13 Dec 2022 08:50:20 +0100 Subject: [PATCH 1/6] Do not add a Content-Type header to ingress (#83425) --- homeassistant/components/hassio/ingress.py | 1 + 1 file changed, 1 insertion(+) diff --git a/homeassistant/components/hassio/ingress.py b/homeassistant/components/hassio/ingress.py index 8aacbac99f6..dceff75bca8 100644 --- a/homeassistant/components/hassio/ingress.py +++ b/homeassistant/components/hassio/ingress.py @@ -130,6 +130,7 @@ class HassIOIngress(HomeAssistantView): allow_redirects=False, data=request.content, timeout=ClientTimeout(total=None), + skip_auto_headers={hdrs.CONTENT_TYPE}, ) as result: headers = _response_header(result) From 4ef2e91fd55feb94c0efd43de7a21fdc685c72f4 Mon Sep 17 00:00:00 2001 From: majuss Date: Wed, 14 Dec 2022 14:56:55 +0100 Subject: [PATCH 2/6] Bump lupupy dependency to v0.2.3 (#83765) fixes undefined --- homeassistant/components/lupusec/manifest.json | 2 +- requirements_all.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/lupusec/manifest.json b/homeassistant/components/lupusec/manifest.json index 5792f186798..74593977eab 100644 --- a/homeassistant/components/lupusec/manifest.json +++ b/homeassistant/components/lupusec/manifest.json @@ -2,7 +2,7 @@ "domain": "lupusec", "name": "Lupus Electronics LUPUSEC", "documentation": "https://www.home-assistant.io/integrations/lupusec", - "requirements": ["lupupy==0.2.1"], + "requirements": ["lupupy==0.2.3"], "codeowners": ["@majuss"], "iot_class": "local_polling", "loggers": ["lupupy"] diff --git a/requirements_all.txt b/requirements_all.txt index 01270a86382..355a48e04da 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -1052,7 +1052,7 @@ london-tube-status==0.5 luftdaten==0.7.4 # homeassistant.components.lupusec -lupupy==0.2.1 +lupupy==0.2.3 # homeassistant.components.lw12wifi lw12==0.9.2 From bedb587290aa49babb9bf61d1001d955a8b4fc9f Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 13 Dec 2022 11:27:05 -1000 Subject: [PATCH 3/6] Bump aioshelly to 5.1.2 to fix state updates not firing after reconnect (#83950) Bump aioshelly to 5.1.2 changelog: https://github.com/home-assistant-libs/aioshelly/compare/5.1.1...5.1.2 --- homeassistant/components/shelly/manifest.json | 2 +- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/shelly/manifest.json b/homeassistant/components/shelly/manifest.json index aae3e0107b5..39723bf4b0f 100644 --- a/homeassistant/components/shelly/manifest.json +++ b/homeassistant/components/shelly/manifest.json @@ -3,7 +3,7 @@ "name": "Shelly", "config_flow": true, "documentation": "https://www.home-assistant.io/integrations/shelly", - "requirements": ["aioshelly==5.1.1"], + "requirements": ["aioshelly==5.1.2"], "dependencies": ["bluetooth", "http"], "zeroconf": [ { diff --git a/requirements_all.txt b/requirements_all.txt index 355a48e04da..5b73f242bb5 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -261,7 +261,7 @@ aiosenseme==0.6.1 aiosenz==1.0.0 # homeassistant.components.shelly -aioshelly==5.1.1 +aioshelly==5.1.2 # homeassistant.components.skybell aioskybell==22.7.0 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index f4148c585fb..a60b2849628 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -236,7 +236,7 @@ aiosenseme==0.6.1 aiosenz==1.0.0 # homeassistant.components.shelly -aioshelly==5.1.1 +aioshelly==5.1.2 # homeassistant.components.skybell aioskybell==22.7.0 From 353fb3be7db9477d65e4f7e9fc863e41a874d8e9 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 13 Dec 2022 12:57:54 -1000 Subject: [PATCH 4/6] Bump aioesphomeapi to 13.0.2 to fix reconnects after bad protobuf message (#83951) --- homeassistant/components/esphome/manifest.json | 2 +- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/esphome/manifest.json b/homeassistant/components/esphome/manifest.json index ae11aa59fce..83ebc60edd6 100644 --- a/homeassistant/components/esphome/manifest.json +++ b/homeassistant/components/esphome/manifest.json @@ -3,7 +3,7 @@ "name": "ESPHome", "config_flow": true, "documentation": "https://www.home-assistant.io/integrations/esphome", - "requirements": ["aioesphomeapi==13.0.1"], + "requirements": ["aioesphomeapi==13.0.2"], "zeroconf": ["_esphomelib._tcp.local."], "dhcp": [{ "registered_devices": true }], "codeowners": ["@OttoWinter", "@jesserockz"], diff --git a/requirements_all.txt b/requirements_all.txt index 5b73f242bb5..a2fd7cc1eeb 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -156,7 +156,7 @@ aioecowitt==2022.11.0 aioemonitor==1.0.5 # homeassistant.components.esphome -aioesphomeapi==13.0.1 +aioesphomeapi==13.0.2 # homeassistant.components.flo aioflo==2021.11.0 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index a60b2849628..1acca1db340 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -143,7 +143,7 @@ aioecowitt==2022.11.0 aioemonitor==1.0.5 # homeassistant.components.esphome -aioesphomeapi==13.0.1 +aioesphomeapi==13.0.2 # homeassistant.components.flo aioflo==2021.11.0 From 59b6d562079c96037982e0bc7a19547ec9b72072 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Wed, 14 Dec 2022 16:41:11 +0100 Subject: [PATCH 5/6] Ignore certain device trigger validation errors (#83972) --- homeassistant/components/device_automation/trigger.py | 4 ++-- tests/components/deconz/test_device_trigger.py | 1 + tests/components/zha/test_device_trigger.py | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/device_automation/trigger.py b/homeassistant/components/device_automation/trigger.py index 05f2f79ff28..cd5b3a84c82 100644 --- a/homeassistant/components/device_automation/trigger.py +++ b/homeassistant/components/device_automation/trigger.py @@ -68,7 +68,7 @@ async def async_validate_trigger_config( # Only call the dynamic validator if the relevant config entry is loaded registry = dr.async_get(hass) if not (device := registry.async_get(config[CONF_DEVICE_ID])): - raise InvalidDeviceAutomationConfig + return config device_config_entry = None for entry_id in device.config_entries: @@ -80,7 +80,7 @@ async def async_validate_trigger_config( break if not device_config_entry: - raise InvalidDeviceAutomationConfig + return config if not await hass.config_entries.async_wait_component(device_config_entry): return config diff --git a/tests/components/deconz/test_device_trigger.py b/tests/components/deconz/test_device_trigger.py index bcd178f21d4..66033aa286d 100644 --- a/tests/components/deconz/test_device_trigger.py +++ b/tests/components/deconz/test_device_trigger.py @@ -349,6 +349,7 @@ async def test_functional_device_trigger( assert automation_calls[0].data["some"] == "test_trigger_button_press" +@pytest.mark.skip(reason="Temporarily disabled until automation validation is improved") async def test_validate_trigger_unknown_device(hass, aioclient_mock): """Test unknown device does not return a trigger config.""" await setup_deconz_integration(hass, aioclient_mock) diff --git a/tests/components/zha/test_device_trigger.py b/tests/components/zha/test_device_trigger.py index 8e19fe5b637..49eeacc0e42 100644 --- a/tests/components/zha/test_device_trigger.py +++ b/tests/components/zha/test_device_trigger.py @@ -372,6 +372,7 @@ async def test_exception_bad_trigger(hass, mock_devices, calls, caplog): assert "Invalid config for [automation]" in caplog.text +@pytest.mark.skip(reason="Temporarily disabled until automation validation is improved") async def test_exception_no_device(hass, mock_devices, calls, caplog): """Test for exception on event triggers firing.""" From 283349f17e0c43056efd755dc1cae332addc4bcc Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Wed, 14 Dec 2022 12:48:04 -0500 Subject: [PATCH 6/6] Bumped version to 2022.12.6 --- 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 ca64acdab46..e36cf99b288 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 = 12 -PATCH_VERSION: Final = "5" +PATCH_VERSION: Final = "6" __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 9874825ac27..1097ff5c708 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "homeassistant" -version = "2022.12.5" +version = "2022.12.6" license = {text = "Apache-2.0"} description = "Open-source home automation platform running on Python 3." readme = "README.rst"