From 80a253bcea1e3cb99295f53f04c0558190dca5f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Ho=C5=A1ek?= Date: Fri, 3 Dec 2021 01:33:05 +0100 Subject: [PATCH] Improve error messages if packet not found in EEP Add some more detail to the error messages if a packet cannot be found in the EEP. --- enocean/protocol/eep.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/enocean/protocol/eep.py b/enocean/protocol/eep.py index cf3c3cb..8da3156 100644 --- a/enocean/protocol/eep.py +++ b/enocean/protocol/eep.py @@ -161,15 +161,15 @@ def find_profile(self, bitarray, eep_rorg, rorg_func, rorg_type, direction=None, return None if eep_rorg not in self.telegrams.keys(): - self.logger.warn('Cannot find rorg in EEP!') + self.logger.warn('Cannot find rorg %s in EEP!', hex(eep_rorg)) return None if rorg_func not in self.telegrams[eep_rorg].keys(): - self.logger.warn('Cannot find func in EEP!') + self.logger.warn('Cannot find rorg %s func %s in EEP!', hex(eep_rorg), hex(rorg_func)) return None if rorg_type not in self.telegrams[eep_rorg][rorg_func].keys(): - self.logger.warn('Cannot find type in EEP!') + self.logger.warn('Cannot find rorg %s func %s type %s in EEP!', hex(eep_rorg), hex(rorg_func), hex(rorg_type)) return None profile = self.telegrams[eep_rorg][rorg_func][rorg_type]