Update xknx to 0.19.1 (#65275)

This commit is contained in:
Matthias Alphart 2022-01-31 05:12:44 +01:00 committed by GitHub
parent 385f1f3dad
commit d4370395e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 14 deletions

View File

@ -4,7 +4,7 @@
"config_flow": true, "config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/knx", "documentation": "https://www.home-assistant.io/integrations/knx",
"requirements": [ "requirements": [
"xknx==0.19.0" "xknx==0.19.1"
], ],
"codeowners": [ "codeowners": [
"@Julius2342", "@Julius2342",

View File

@ -2496,7 +2496,7 @@ xbox-webapi==2.0.11
xboxapi==2.0.1 xboxapi==2.0.1
# homeassistant.components.knx # homeassistant.components.knx
xknx==0.19.0 xknx==0.19.1
# homeassistant.components.bluesound # homeassistant.components.bluesound
# homeassistant.components.fritz # homeassistant.components.fritz

View File

@ -1530,7 +1530,7 @@ wolf_smartset==0.1.11
xbox-webapi==2.0.11 xbox-webapi==2.0.11
# homeassistant.components.knx # homeassistant.components.knx
xknx==0.19.0 xknx==0.19.1
# homeassistant.components.bluesound # homeassistant.components.bluesound
# homeassistant.components.fritz # homeassistant.components.fritz

View File

@ -13,7 +13,7 @@ from xknx.telegram import Telegram, TelegramDirection
from xknx.telegram.address import GroupAddress, IndividualAddress from xknx.telegram.address import GroupAddress, IndividualAddress
from xknx.telegram.apci import APCI, GroupValueRead, GroupValueResponse, GroupValueWrite from xknx.telegram.apci import APCI, GroupValueRead, GroupValueResponse, GroupValueWrite
from homeassistant.components.knx import ConnectionSchema, KNXModule from homeassistant.components.knx import ConnectionSchema
from homeassistant.components.knx.const import ( from homeassistant.components.knx.const import (
CONF_KNX_AUTOMATIC, CONF_KNX_AUTOMATIC,
CONF_KNX_CONNECTION_TYPE, CONF_KNX_CONNECTION_TYPE,
@ -40,11 +40,6 @@ class KNXTestKit:
# telegrams to an InternalGroupAddress won't be queued here # telegrams to an InternalGroupAddress won't be queued here
self._outgoing_telegrams: asyncio.Queue = asyncio.Queue() self._outgoing_telegrams: asyncio.Queue = asyncio.Queue()
@property
def knx_module(self) -> KNXModule:
"""Get the KNX module."""
return self.hass.data[KNX_DOMAIN]
def assert_state(self, entity_id: str, state: str, **attributes) -> None: def assert_state(self, entity_id: str, state: str, **attributes) -> None:
"""Assert the state of an entity.""" """Assert the state of an entity."""
test_state = self.hass.states.get(entity_id) test_state = self.hass.states.get(entity_id)

View File

@ -39,11 +39,11 @@ def _gateway_descriptor(
) -> GatewayDescriptor: ) -> GatewayDescriptor:
"""Get mock gw descriptor.""" """Get mock gw descriptor."""
return GatewayDescriptor( return GatewayDescriptor(
"Test", name="Test",
ip, ip_addr=ip,
port, port=port,
"eth0", local_interface="eth0",
"127.0.0.1", local_ip="127.0.0.1",
supports_routing=True, supports_routing=True,
supports_tunnelling=True, supports_tunnelling=True,
supports_tunnelling_tcp=supports_tunnelling_tcp, supports_tunnelling_tcp=supports_tunnelling_tcp,