mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Bump aioesphomeapi to 21.0.0 (#105609)
This commit is contained in:
parent
a595cd7141
commit
22f0e09b8c
@ -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,
|
||||||
|
@ -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"
|
||||||
],
|
],
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user