mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +00:00
Bump inkbird-ble to 0.13.0 (#142885)
* Bump inkbird-ble to 0.12.0 changelog: https://github.com/Bluetooth-Devices/inkbird-ble/compare/v0.11.0...v0.12.0 * map discovery as well * fix merge * fix merge error * bump again for more cleanups * fix tests
This commit is contained in:
parent
cc6e2ef3f7
commit
3389ee4b80
@ -40,5 +40,5 @@
|
|||||||
"dependencies": ["bluetooth_adapters"],
|
"dependencies": ["bluetooth_adapters"],
|
||||||
"documentation": "https://www.home-assistant.io/integrations/inkbird",
|
"documentation": "https://www.home-assistant.io/integrations/inkbird",
|
||||||
"iot_class": "local_push",
|
"iot_class": "local_push",
|
||||||
"requirements": ["inkbird-ble==0.11.0"]
|
"requirements": ["inkbird-ble==0.13.0"]
|
||||||
}
|
}
|
||||||
|
2
requirements_all.txt
generated
2
requirements_all.txt
generated
@ -1235,7 +1235,7 @@ influxdb-client==1.24.0
|
|||||||
influxdb==5.3.1
|
influxdb==5.3.1
|
||||||
|
|
||||||
# homeassistant.components.inkbird
|
# homeassistant.components.inkbird
|
||||||
inkbird-ble==0.11.0
|
inkbird-ble==0.13.0
|
||||||
|
|
||||||
# homeassistant.components.insteon
|
# homeassistant.components.insteon
|
||||||
insteon-frontend-home-assistant==0.5.0
|
insteon-frontend-home-assistant==0.5.0
|
||||||
|
2
requirements_test_all.txt
generated
2
requirements_test_all.txt
generated
@ -1050,7 +1050,7 @@ influxdb-client==1.24.0
|
|||||||
influxdb==5.3.1
|
influxdb==5.3.1
|
||||||
|
|
||||||
# homeassistant.components.inkbird
|
# homeassistant.components.inkbird
|
||||||
inkbird-ble==0.11.0
|
inkbird-ble==0.13.0
|
||||||
|
|
||||||
# homeassistant.components.insteon
|
# homeassistant.components.insteon
|
||||||
insteon-frontend-home-assistant==0.5.0
|
insteon-frontend-home-assistant==0.5.0
|
||||||
|
@ -1,8 +1,44 @@
|
|||||||
"""Tests for the INKBIRD integration."""
|
"""Tests for the INKBIRD integration."""
|
||||||
|
|
||||||
from homeassistant.helpers.service_info.bluetooth import BluetoothServiceInfo
|
from uuid import UUID
|
||||||
|
|
||||||
NOT_INKBIRD_SERVICE_INFO = BluetoothServiceInfo(
|
from bleak.backends.device import BLEDevice
|
||||||
|
|
||||||
|
from homeassistant.components.bluetooth import MONOTONIC_TIME, BluetoothServiceInfoBleak
|
||||||
|
|
||||||
|
|
||||||
|
def _make_bluetooth_service_info(
|
||||||
|
name: str,
|
||||||
|
manufacturer_data: dict[int, bytes],
|
||||||
|
service_uuids: list[str],
|
||||||
|
address: str,
|
||||||
|
rssi: int,
|
||||||
|
service_data: dict[UUID, bytes],
|
||||||
|
source: str,
|
||||||
|
tx_power: int = 0,
|
||||||
|
) -> BluetoothServiceInfoBleak:
|
||||||
|
return BluetoothServiceInfoBleak(
|
||||||
|
name=name,
|
||||||
|
manufacturer_data=manufacturer_data,
|
||||||
|
service_uuids=service_uuids,
|
||||||
|
address=address,
|
||||||
|
rssi=rssi,
|
||||||
|
service_data=service_data,
|
||||||
|
source=source,
|
||||||
|
device=BLEDevice(
|
||||||
|
name=name,
|
||||||
|
address=address,
|
||||||
|
details={},
|
||||||
|
rssi=rssi,
|
||||||
|
),
|
||||||
|
time=MONOTONIC_TIME(),
|
||||||
|
advertisement=None,
|
||||||
|
connectable=True,
|
||||||
|
tx_power=tx_power,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
NOT_INKBIRD_SERVICE_INFO = _make_bluetooth_service_info(
|
||||||
name="Not it",
|
name="Not it",
|
||||||
address="61DE521B-F0BF-9F44-64D4-75BBE1738105",
|
address="61DE521B-F0BF-9F44-64D4-75BBE1738105",
|
||||||
rssi=-63,
|
rssi=-63,
|
||||||
@ -12,7 +48,7 @@ NOT_INKBIRD_SERVICE_INFO = BluetoothServiceInfo(
|
|||||||
source="local",
|
source="local",
|
||||||
)
|
)
|
||||||
|
|
||||||
SPS_SERVICE_INFO = BluetoothServiceInfo(
|
SPS_SERVICE_INFO = _make_bluetooth_service_info(
|
||||||
name="sps",
|
name="sps",
|
||||||
address="61DE521B-F0BF-9F44-64D4-75BBE1738105",
|
address="61DE521B-F0BF-9F44-64D4-75BBE1738105",
|
||||||
rssi=-63,
|
rssi=-63,
|
||||||
@ -23,7 +59,7 @@ SPS_SERVICE_INFO = BluetoothServiceInfo(
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
SPS_PASSIVE_SERVICE_INFO = BluetoothServiceInfo(
|
SPS_PASSIVE_SERVICE_INFO = _make_bluetooth_service_info(
|
||||||
name="sps",
|
name="sps",
|
||||||
address="AA:BB:CC:DD:EE:FF",
|
address="AA:BB:CC:DD:EE:FF",
|
||||||
rssi=-63,
|
rssi=-63,
|
||||||
@ -34,7 +70,7 @@ SPS_PASSIVE_SERVICE_INFO = BluetoothServiceInfo(
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
SPS_WITH_CORRUPT_NAME_SERVICE_INFO = BluetoothServiceInfo(
|
SPS_WITH_CORRUPT_NAME_SERVICE_INFO = _make_bluetooth_service_info(
|
||||||
name="XXXXcorruptXXXX",
|
name="XXXXcorruptXXXX",
|
||||||
address="AA:BB:CC:DD:EE:FF",
|
address="AA:BB:CC:DD:EE:FF",
|
||||||
rssi=-63,
|
rssi=-63,
|
||||||
@ -45,7 +81,7 @@ SPS_WITH_CORRUPT_NAME_SERVICE_INFO = BluetoothServiceInfo(
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
IBBQ_SERVICE_INFO = BluetoothServiceInfo(
|
IBBQ_SERVICE_INFO = _make_bluetooth_service_info(
|
||||||
name="iBBQ",
|
name="iBBQ",
|
||||||
address="4125DDBA-2774-4851-9889-6AADDD4CAC3D",
|
address="4125DDBA-2774-4851-9889-6AADDD4CAC3D",
|
||||||
rssi=-56,
|
rssi=-56,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user