Bump bthome-ble to 3.0.0 (#96616)

This commit is contained in:
J. Nick Koston 2023-07-15 21:47:09 -10:00 committed by GitHub
parent 63115a906d
commit 4d3e24465c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

View File

@ -80,7 +80,7 @@ class BTHomeConfigFlow(ConfigFlow, domain=DOMAIN):
if len(bindkey) != 32:
errors["bindkey"] = "expected_32_characters"
else:
self._discovered_device.bindkey = bytes.fromhex(bindkey)
self._discovered_device.set_bindkey(bytes.fromhex(bindkey))
# If we got this far we already know supported will
# return true so we don't bother checking that again

View File

@ -20,5 +20,5 @@
"dependencies": ["bluetooth_adapters"],
"documentation": "https://www.home-assistant.io/integrations/bthome",
"iot_class": "local_push",
"requirements": ["bthome-ble==2.12.1"]
"requirements": ["bthome-ble==3.0.0"]
}

View File

@ -562,7 +562,7 @@ brunt==1.2.0
bt-proximity==0.2.1
# homeassistant.components.bthome
bthome-ble==2.12.1
bthome-ble==3.0.0
# homeassistant.components.bt_home_hub_5
bthomehub5-devicelist==0.1.1

View File

@ -469,7 +469,7 @@ brottsplatskartan==0.0.1
brunt==1.2.0
# homeassistant.components.bthome
bthome-ble==2.12.1
bthome-ble==3.0.0
# homeassistant.components.buienradar
buienradar==1.0.5

View File

@ -175,7 +175,7 @@ async def test_async_step_user_no_devices_found_2(hass: HomeAssistant) -> None:
This variant tests with a non-BTHome device known to us.
"""
with patch(
"homeassistant.components.xiaomi_ble.config_flow.async_discovered_service_info",
"homeassistant.components.bthome.config_flow.async_discovered_service_info",
return_value=[NOT_BTHOME_SERVICE_INFO],
):
result = await hass.config_entries.flow.async_init(