Bump aioesphomeapi to 21.0.0 (#105609)

This commit is contained in:
J. Nick Koston 2023-12-12 15:20:05 -10:00 committed by GitHub
parent a595cd7141
commit 22f0e09b8c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View file

@ -1,7 +1,7 @@
"""Bluetooth scanner for esphome."""
from __future__ import annotations
from aioesphomeapi import BluetoothLEAdvertisement, BluetoothLERawAdvertisement
from aioesphomeapi import BluetoothLEAdvertisement, BluetoothLERawAdvertisementsResponse
from bluetooth_data_tools import (
int_to_bluetooth_address,
parse_advertisement_data_tuple,
@ -34,11 +34,11 @@ class ESPHomeScanner(BaseHaRemoteScanner):
@callback
def async_on_raw_advertisements(
self, advertisements: list[BluetoothLERawAdvertisement]
self, raw: BluetoothLERawAdvertisementsResponse
) -> None:
"""Call the registered callback."""
now = MONOTONIC_TIME()
for adv in advertisements:
for adv in raw.advertisements:
self._async_on_advertisement(
int_to_bluetooth_address(adv.address),
adv.rssi,

View file

@ -15,7 +15,7 @@
"iot_class": "local_push",
"loggers": ["aioesphomeapi", "noiseprotocol"],
"requirements": [
"aioesphomeapi==20.1.0",
"aioesphomeapi==21.0.0",
"bluetooth-data-tools==1.17.0",
"esphome-dashboard-api==1.2.3"
],

View file

@ -239,7 +239,7 @@ aioelectricitymaps==0.1.5
aioemonitor==1.0.5
# homeassistant.components.esphome
aioesphomeapi==20.1.0
aioesphomeapi==21.0.0
# homeassistant.components.flo
aioflo==2021.11.0

View file

@ -218,7 +218,7 @@ aioelectricitymaps==0.1.5
aioemonitor==1.0.5
# homeassistant.components.esphome
aioesphomeapi==20.1.0
aioesphomeapi==21.0.0
# homeassistant.components.flo
aioflo==2021.11.0