Skip to content

Commit 80a253b

Browse files
RavuAlHemiokipe
authored andcommitted
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.
1 parent 33151e9 commit 80a253b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

enocean/protocol/eep.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -161,15 +161,15 @@ def find_profile(self, bitarray, eep_rorg, rorg_func, rorg_type, direction=None,
161161
return None
162162

163163
if eep_rorg not in self.telegrams.keys():
164-
self.logger.warn('Cannot find rorg in EEP!')
164+
self.logger.warn('Cannot find rorg %s in EEP!', hex(eep_rorg))
165165
return None
166166

167167
if rorg_func not in self.telegrams[eep_rorg].keys():
168-
self.logger.warn('Cannot find func in EEP!')
168+
self.logger.warn('Cannot find rorg %s func %s in EEP!', hex(eep_rorg), hex(rorg_func))
169169
return None
170170

171171
if rorg_type not in self.telegrams[eep_rorg][rorg_func].keys():
172-
self.logger.warn('Cannot find type in EEP!')
172+
self.logger.warn('Cannot find rorg %s func %s type %s in EEP!', hex(eep_rorg), hex(rorg_func), hex(rorg_type))
173173
return None
174174

175175
profile = self.telegrams[eep_rorg][rorg_func][rorg_type]

0 commit comments

Comments
 (0)