From db428f2141576e06ad927dc1865cf5c6684450d2 Mon Sep 17 00:00:00 2001 From: Matthias Alphart Date: Wed, 11 Jan 2023 00:24:56 +0100 Subject: [PATCH] Update xknx to 2.3.0 - add some DPTs, Routing security (#85658) Update xknx to 2.3.0 --- homeassistant/components/knx/manifest.json | 2 +- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- tests/components/knx/conftest.py | 4 +++- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/knx/manifest.json b/homeassistant/components/knx/manifest.json index 60feb3c7419..7c1fa368b83 100644 --- a/homeassistant/components/knx/manifest.json +++ b/homeassistant/components/knx/manifest.json @@ -3,7 +3,7 @@ "name": "KNX", "config_flow": true, "documentation": "https://www.home-assistant.io/integrations/knx", - "requirements": ["xknx==2.2.0"], + "requirements": ["xknx==2.3.0"], "codeowners": ["@Julius2342", "@farmio", "@marvin-w"], "quality_scale": "platinum", "iot_class": "local_push", diff --git a/requirements_all.txt b/requirements_all.txt index e5f2052df31..26de341bfef 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -2622,7 +2622,7 @@ xboxapi==2.0.1 xiaomi-ble==0.14.3 # homeassistant.components.knx -xknx==2.2.0 +xknx==2.3.0 # homeassistant.components.bluesound # homeassistant.components.fritz diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 92efa00145c..5c020798742 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -1844,7 +1844,7 @@ xbox-webapi==2.0.11 xiaomi-ble==0.14.3 # homeassistant.components.knx -xknx==2.2.0 +xknx==2.3.0 # homeassistant.components.bluesound # homeassistant.components.fritz diff --git a/tests/components/knx/conftest.py b/tests/components/knx/conftest.py index b6735df3624..a67847d26fd 100644 --- a/tests/components/knx/conftest.py +++ b/tests/components/knx/conftest.py @@ -58,6 +58,9 @@ class KNXTestKit: async def patch_xknx_start(): """Patch `xknx.start` for unittests.""" + self.xknx.cemi_handler.send_telegram = AsyncMock( + side_effect=self._outgoing_telegrams.put + ) # after XKNX.__init__() to not overwrite it by the config entry again # before StateUpdater starts to avoid slow down of tests self.xknx.rate_limit = 0 @@ -72,7 +75,6 @@ class KNXTestKit: mock = Mock() mock.start = AsyncMock(side_effect=patch_xknx_start) mock.stop = AsyncMock() - mock.send_telegram = AsyncMock(side_effect=self._outgoing_telegrams.put) return mock def fish_xknx(*args, **kwargs):