Skip to content

Commit

Permalink
Fix "Characteristics not handled" warning #19
Browse files Browse the repository at this point in the history
  • Loading branch information
LaStrada authored Oct 26, 2023
1 parent 3cb17e0 commit cd64caa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airthings_ble/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ async def _get_device_characteristics(
continue
if characteristic.name == "manufacturer":
device.manufacturer = data.decode(characteristic.format)
if characteristic.name == "hardware_rev":
elif characteristic.name == "hardware_rev":
device.hw_version = data.decode(characteristic.format)
elif characteristic.name == "firmware_rev":
device.sw_version = data.decode(characteristic.format)
Expand Down

0 comments on commit cd64caa

Please sign in to comment.