Skip to content

Commit

Permalink
fix issue when brand name are not provided
Browse files Browse the repository at this point in the history
  • Loading branch information
pipiche38 committed Nov 30, 2023
1 parent 14da4eb commit f278112
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/ZigpyTransport/firmwareversionHelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ def znp_extract_versioning_for_plugin(self, znp_model, znp_manuf):
# Bellows

def bellows_extract_versioning_for_plugin(self, brd_manuf, brd_name, version):
self.log.logging("TransportZigpy", "Debug", "bellows_extract_versioning_for_plugin Manuf: %s Name: %s Version: %s" % (brd_manuf, brd_name, version))
self.log.logging("TransportZigpy", "Log", "bellows_extract_versioning_for_plugin Manuf: %s Name: %s Version: %s" % (brd_manuf, brd_name, version))

firmware_branch = "98" # Not found in the Table.

if brd_manuf.lower() == 'elelabs':
if brd_manuf and brd_manuf.lower() == 'elelabs':
if 'elu01' in brd_name.lower():
firmware_branch = "31"
elif 'elr02' in brd_name.lower():
Expand Down

0 comments on commit f278112

Please sign in to comment.