File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/bleak_esphome/backend Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ def async_on_raw_advertisements(
39
39
"""Call the registered callback."""
40
40
now = MONOTONIC_TIME ()
41
41
advertisements = raw .advertisements
42
+ async_on_advertisement = self ._async_on_advertisement
42
43
# We avoid __iter__ on the protobuf object because
43
44
# the the protobuf library has an expensive internal
44
45
# debug logging when it reaches the end of a repeated field.
@@ -49,7 +50,7 @@ def async_on_raw_advertisements(
49
50
for i in range (len (advertisements )):
50
51
adv = advertisements [i ]
51
52
parsed : tuple = parse_advertisement_data_tuple ((adv .data ,)) # type: ignore[type-arg]
52
- self . _async_on_advertisement (
53
+ async_on_advertisement (
53
54
int_to_bluetooth_address (adv .address ),
54
55
adv .rssi ,
55
56
parsed [0 ],
You can’t perform that action at this time.
0 commit comments