Skip to content

Commit

Permalink
Move debug print
Browse files Browse the repository at this point in the history
  • Loading branch information
8none1 committed Nov 24, 2024
1 parent 7bf434e commit e8f7924
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/lednetwf_ble/lednetwf.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,12 @@ def __init__(self, mac, hass, data={}, options={}) -> None:
LOGGER.debug(f"Formatted manufacturer data: {' '.join([f'0x{byte:02X}' for byte in manu_data])}")
fw_major = f"0x{manu_data[0]:02X}"
model_class_name = f"Model{fw_major}"
LOGGER.debug(f"Model class name: {model_class_name}")
# This might hack in support for more than one model to a single abstraction....
# This is to attempt support for this issue: https://github.com/raulgbcr/lednetwf_ble/issues/26
# and avoid just making another copy of 0x62 and renaming it. This is a temporary fix until I work out a better way to do this.
if model_class_name == "Model0x55":
model_class_name = "Model0x62"
LOGGER.debug(f"Model class name: {model_class_name}")
try:
model_class = globals()[model_class_name]
except KeyError:
Expand Down

0 comments on commit e8f7924

Please sign in to comment.