From bef34f2bb0133734988e5ebb0f4196e3acbdb735 Mon Sep 17 00:00:00 2001 From: Joachim Lusiardi Date: Sun, 29 Apr 2018 21:39:36 +0200 Subject: [PATCH] fix for issue #16 --- homekit/protocol.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homekit/protocol.py b/homekit/protocol.py index de59d1bf..4c1ade52 100644 --- a/homekit/protocol.py +++ b/homekit/protocol.py @@ -36,9 +36,9 @@ def error_handler(error, stage): raise homekit.exception.MaxPeersError(stage) elif error == TLV.kTLVError_MaxTries: raise homekit.exception.MaxTriesError(stage) - elif error == kTLVError_Unavailable: + elif error == TLV.kTLVError_Unavailable: raise homekit.exception.UnavailableError(stage) - elif error == kTLVError_Busy: + elif error == TLV.kTLVError_Busy: raise homekit.exception.BusyError(stage) else: raise homekit.exception.InvalidError(stage)