We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c38d489 commit c3c8169Copy full SHA for c3c8169
custom_components/lednetwf_ble/models/model_abstractions.py
@@ -40,9 +40,9 @@ def __init__(self, manu_data):
40
self.GET_LED_SETTINGS_PACKET = bytearray.fromhex("00 02 80 00 00 05 06 0a 63 12 21 f0 86")
41
42
def process_manu_data(self, manu_data):
43
- manu_data_str = ' '.join(f'0x{byte:02X}' for byte in manu_data[next(iter(manu_data))])
44
- LOGGER.debug(f"Manu data: {manu_data_str}")
45
if manu_data:
+ manu_data_str = ' '.join(f'0x{byte:02X}' for byte in manu_data[next(iter(manu_data))])
+ LOGGER.debug(f"Manu data: {manu_data_str}")
46
manu_data_id = next(iter(manu_data))
47
self.manu_data = bytearray(manu_data[manu_data_id])
48
self.fw_major = self.manu_data[0]
0 commit comments