Skip to content
Snippets Groups Projects
Commit 70cab8eb authored by jkerdreu's avatar jkerdreu
Browse files

Fix attribute changed dupplicat

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/trunk@223 b32b6428-25c9-4566-ad07-03861ab6144f
parent a15fb0df
Branches
No related tags found
No related merge requests found
......@@ -60,9 +60,10 @@ class KNXGateway(XAALGateway):
knxAddr = data[7]
knxCmd = data[9]
for dev in self.getDevices():
if knxAddr in [dev.getSendAddr(),dev.getRecvAddr()]:
#if knxAddr in [dev.getSendAddr(),dev.getRecvAddr()]:
if knxAddr == dev.getRecvAddr():
target=dev
print "KNX Notif from :" , data
print "KNX Notif from :" , knxAddr
if target:
if knxCmd==KNX.POWER_ON_STATE:
target.setState("on")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment