From 22f0e09b8c2d92fdbdf926c92c37900b4e4f648d Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 12 Dec 2023 15:20:05 -1000 Subject: [PATCH] Bump aioesphomeapi to 21.0.0 (#105609) --- homeassistant/components/esphome/bluetooth/scanner.py | 6 +++--- homeassistant/components/esphome/manifest.json | 2 +- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/homeassistant/components/esphome/bluetooth/scanner.py b/homeassistant/components/esphome/bluetooth/scanner.py index a54e7af59a6..ecbfeb4124c 100644 --- a/homeassistant/components/esphome/bluetooth/scanner.py +++ b/homeassistant/components/esphome/bluetooth/scanner.py @@ -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, diff --git a/homeassistant/components/esphome/manifest.json b/homeassistant/components/esphome/manifest.json index 0a22b3a4b59..a7712de14fa 100644 --- a/homeassistant/components/esphome/manifest.json +++ b/homeassistant/components/esphome/manifest.json @@ -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" ], diff --git a/requirements_all.txt b/requirements_all.txt index a5876e4df4b..ff852542d0d 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -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 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 9ca69fb466d..bb14d282a21 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -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