Skip to content

Commit

Permalink
Bump bthome-ble to 3.6.0 (#112060)
Browse files Browse the repository at this point in the history
* Bump bthome-ble to 3.6.0

* Fix discovery info typing
  • Loading branch information
thecode committed Mar 2, 2024
1 parent b734a9f commit ec4331f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions homeassistant/components/bthome/config_flow.py
Expand Up @@ -11,7 +11,7 @@

from homeassistant.components import onboarding
from homeassistant.components.bluetooth import (
BluetoothServiceInfo,
BluetoothServiceInfoBleak,
async_discovered_service_info,
)
from homeassistant.config_entries import ConfigFlow, ConfigFlowResult
Expand All @@ -25,11 +25,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


Expand All @@ -40,12 +40,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
) -> ConfigFlowResult:
"""Handle the bluetooth discovery step."""
await self.async_set_unique_id(discovery_info.address)
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/bthome/manifest.json
Expand Up @@ -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"]
}
2 changes: 1 addition & 1 deletion requirements_all.txt
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion requirements_test_all.txt
Expand Up @@ -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
Expand Down

0 comments on commit ec4331f

Please sign in to comment.