From 426fa1789c0ab8b0fc2c2e88cadf5ada764af67f Mon Sep 17 00:00:00 2001 From: Matthias Urlichs Date: Tue, 11 Sep 2018 13:05:29 +0200 Subject: [PATCH] Connecting to a tunnel server assigns a bus address to us. Use it. --- xknx/io/connect.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xknx/io/connect.py b/xknx/io/connect.py index e7748a661..ddcc75dae 100644 --- a/xknx/io/connect.py +++ b/xknx/io/connect.py @@ -34,3 +34,5 @@ def on_success_hook(self, knxipframe): """Set communication channel and identifier after having received a valid answer.""" self.communication_channel = knxipframe.body.communication_channel self.identifier = knxipframe.body.identifier + # Use the address they gave us + self.xknx.own_address.raw = self.identifier