Skip to content

Commit

Permalink
Merge 1bb921b into 33151e9
Browse files Browse the repository at this point in the history
  • Loading branch information
RavuAlHemio committed Dec 19, 2021
2 parents 33151e9 + 1bb921b commit 740e92d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions enocean/protocol/eep.py
Expand Up @@ -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]
Expand Down

0 comments on commit 740e92d

Please sign in to comment.