Skip to content

Commit

Permalink
fix: workaround for empty service_uuids
Browse files Browse the repository at this point in the history
  • Loading branch information
Ernst79 committed Aug 24, 2022
1 parent 0e62a0a commit 2cab081
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bthome_ble/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def _parse_bthome(
self.set_device_manufacturer("Home Assistant")
self.set_device_type("BThome sensor")

uuid16 = service_info.service_uuids
uuid16 = list(service_info.service_data.keys())
if uuid16 == ["0000181c-0000-1000-8000-00805f9b34fb"]:
# Non-encrypted BThome BLE format
self.encryption_scheme = EncryptionScheme.NONE
Expand Down

0 comments on commit 2cab081

Please sign in to comment.