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

View File

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

View File

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

View File

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