Bump xiaomi-ble to 1.16.0 (#178706)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
trcyberoptic
2026-08-18 14:04:36 +02:00
committed by GitHub
co-authored by Claude
parent 64419c6435
commit 0190c70e66
3 changed files with 10 additions and 11 deletions
@@ -25,5 +25,5 @@
"documentation": "https://www.home-assistant.io/integrations/xiaomi_ble",
"integration_type": "device",
"iot_class": "local_push",
"requirements": ["xiaomi-ble==1.11.0"]
"requirements": ["xiaomi-ble==1.16.0"]
}
+1 -1
View File
@@ -3412,7 +3412,7 @@ wsdot==0.0.1
wyoming==1.10.0
# homeassistant.components.xiaomi_ble
xiaomi-ble==1.11.0
xiaomi-ble==1.16.0
# homeassistant.components.knx
xknx==3.20.0
@@ -299,8 +299,7 @@ async def test_unavailable(hass: HomeAssistant) -> None:
entry = MockConfigEntry(
domain=DOMAIN,
unique_id="A4:C1:38:66:E5:67",
data={"bindkey": "0fdcc30fe9289254876b5ef7c11ef1f0"},
unique_id="58:2D:34:35:93:21",
)
entry.add_to_hass(hass)
@@ -311,16 +310,16 @@ async def test_unavailable(hass: HomeAssistant) -> None:
inject_bluetooth_service_info_bleak(
hass,
make_advertisement(
"A4:C1:38:66:E5:67",
b"XY\x89\x18\x9ag\xe5f8\xc1\xa4\x9d\xd9z\xf3&\x00\x00\xc8\xa6\x0b\xd5",
"58:2D:34:35:93:21",
b"P \xf6\x07\xda!\x9354-X\x0f\x00\x03\x01\x00\x00",
),
)
await hass.async_block_till_done()
assert len(hass.states.async_all()) == 1
assert len(hass.states.async_all()) == 2
opening_sensor = hass.states.get("binary_sensor.door_window_sensor_e567_opening")
motion_sensor = hass.states.get("binary_sensor.nightlight_9321_motion")
assert opening_sensor.state == STATE_ON
assert motion_sensor.state == STATE_ON
# Fastforward time without BLE advertisements
monotonic_now = start_monotonic + FALLBACK_MAXIMUM_STALE_ADVERTISEMENT_SECONDS + 1
@@ -338,10 +337,10 @@ async def test_unavailable(hass: HomeAssistant) -> None:
)
await hass.async_block_till_done()
opening_sensor = hass.states.get("binary_sensor.door_window_sensor_e567_opening")
motion_sensor = hass.states.get("binary_sensor.nightlight_9321_motion")
# Normal devices should go to unavailable
assert opening_sensor.state == STATE_UNAVAILABLE
assert motion_sensor.state == STATE_UNAVAILABLE
assert await hass.config_entries.async_unload(entry.entry_id)
await hass.async_block_till_done()