Bump bthome-ble to 3.6.0 (#112060)

* Bump bthome-ble to 3.6.0

* Fix discovery info typing
This commit is contained in:
Shay Levy
2024-03-02 22:07:59 -05:00
committed by Paulus Schoutsen
parent de5e626430
commit 88fb44bbba
4 changed files with 9 additions and 8 deletions
@@ -1,4 +1,5 @@
"""Config flow for BTHome Bluetooth integration."""
from __future__ import annotations
from collections.abc import Mapping
@@ -11,7 +12,7 @@ import voluptuous as vol
from homeassistant.components import onboarding
from homeassistant.components.bluetooth import (
BluetoothServiceInfo,
BluetoothServiceInfoBleak,
async_discovered_service_info,
)
from homeassistant.config_entries import ConfigFlow
@@ -26,11 +27,11 @@ class Discovery:
"""A discovered bluetooth device."""
title: str
discovery_info: BluetoothServiceInfo
discovery_info: BluetoothServiceInfoBleak
device: DeviceData
def _title(discovery_info: BluetoothServiceInfo, device: DeviceData) -> str:
def _title(discovery_info: BluetoothServiceInfoBleak, device: DeviceData) -> str:
return device.title or device.get_device_name() or discovery_info.name
@@ -41,12 +42,12 @@ class BTHomeConfigFlow(ConfigFlow, domain=DOMAIN):
def __init__(self) -> None:
"""Initialize the config flow."""
self._discovery_info: BluetoothServiceInfo | None = None
self._discovery_info: BluetoothServiceInfoBleak | None = None
self._discovered_device: DeviceData | None = None
self._discovered_devices: dict[str, Discovery] = {}
async def async_step_bluetooth(
self, discovery_info: BluetoothServiceInfo
self, discovery_info: BluetoothServiceInfoBleak
) -> FlowResult:
"""Handle the bluetooth discovery step."""
await self.async_set_unique_id(discovery_info.address)
@@ -20,5 +20,5 @@
"dependencies": ["bluetooth_adapters"],
"documentation": "https://www.home-assistant.io/integrations/bthome",
"iot_class": "local_push",
"requirements": ["bthome-ble==3.5.0"]
"requirements": ["bthome-ble==3.6.0"]
}
+1 -1
View File
@@ -621,7 +621,7 @@ brunt==1.2.0
bt-proximity==0.2.1
# homeassistant.components.bthome
bthome-ble==3.5.0
bthome-ble==3.6.0
# homeassistant.components.bt_home_hub_5
bthomehub5-devicelist==0.1.1
+1 -1
View File
@@ -529,7 +529,7 @@ brottsplatskartan==1.0.5
brunt==1.2.0
# homeassistant.components.bthome
bthome-ble==3.5.0
bthome-ble==3.6.0
# homeassistant.components.buienradar
buienradar==1.0.5