Skip to content

Commit

Permalink
Bump xiaomi-ble to 0.17.2 (#94011)
Browse files Browse the repository at this point in the history
Bump xiaomi-ble

Co-authored-by: J. Nick Koston <nick@koston.org>
  • Loading branch information
2 people authored and balloob committed Jun 5, 2023
1 parent 4f00cc9 commit aff4d53
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion homeassistant/components/xiaomi_ble/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
"dependencies": ["bluetooth_adapters"],
"documentation": "https://www.home-assistant.io/integrations/xiaomi_ble",
"iot_class": "local_push",
"requirements": ["xiaomi-ble==0.17.0"]
"requirements": ["xiaomi-ble==0.17.2"]
}
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2677,7 +2677,7 @@ wyoming==0.0.1
xbox-webapi==2.0.11

# homeassistant.components.xiaomi_ble
xiaomi-ble==0.17.0
xiaomi-ble==0.17.2

# homeassistant.components.knx
xknx==2.10.0
Expand Down
2 changes: 1 addition & 1 deletion requirements_test_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1947,7 +1947,7 @@ wyoming==0.0.1
xbox-webapi==2.0.11

# homeassistant.components.xiaomi_ble
xiaomi-ble==0.17.0
xiaomi-ble==0.17.2

# homeassistant.components.knx
xknx==2.10.0
Expand Down
4 changes: 2 additions & 2 deletions tests/components/xiaomi_ble/test_binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,10 +253,10 @@ async def test_smoke(hass: HomeAssistant) -> None:
await hass.async_block_till_done()
assert len(hass.states.async_all()) == 1

smoke_sensor = hass.states.get("binary_sensor.thermometer_9cbc_smoke")
smoke_sensor = hass.states.get("binary_sensor.smoke_detector_9cbc_smoke")
smoke_sensor_attribtes = smoke_sensor.attributes
assert smoke_sensor.state == STATE_ON
assert smoke_sensor_attribtes[ATTR_FRIENDLY_NAME] == "Thermometer 9CBC Smoke"
assert smoke_sensor_attribtes[ATTR_FRIENDLY_NAME] == "Smoke Detector 9CBC Smoke"

assert await hass.config_entries.async_unload(entry.entry_id)
await hass.async_block_till_done()
Expand Down
12 changes: 6 additions & 6 deletions tests/components/xiaomi_ble/test_config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ async def test_async_step_bluetooth_valid_device_v4_encryption(
)

assert result2["type"] == FlowResultType.CREATE_ENTRY
assert result2["title"] == "Thermometer 9CBC (JTYJGD03MI)"
assert result2["title"] == "Smoke Detector 9CBC (JTYJGD03MI)"
assert result2["data"] == {"bindkey": "5b51a7c91cde6707c9ef18dfda143a58"}
assert result2["result"].unique_id == "54:EF:44:E3:9C:BC"

Expand Down Expand Up @@ -284,7 +284,7 @@ async def test_async_step_bluetooth_valid_device_v4_encryption_wrong_key(
)

assert result2["type"] == FlowResultType.CREATE_ENTRY
assert result2["title"] == "Thermometer 9CBC (JTYJGD03MI)"
assert result2["title"] == "Smoke Detector 9CBC (JTYJGD03MI)"
assert result2["data"] == {"bindkey": "5b51a7c91cde6707c9ef18dfda143a58"}
assert result2["result"].unique_id == "54:EF:44:E3:9C:BC"

Expand Down Expand Up @@ -320,7 +320,7 @@ async def test_async_step_bluetooth_valid_device_v4_encryption_wrong_key_length(
)

assert result2["type"] == FlowResultType.CREATE_ENTRY
assert result2["title"] == "Thermometer 9CBC (JTYJGD03MI)"
assert result2["title"] == "Smoke Detector 9CBC (JTYJGD03MI)"
assert result2["data"] == {"bindkey": "5b51a7c91cde6707c9ef18dfda143a58"}
assert result2["result"].unique_id == "54:EF:44:E3:9C:BC"

Expand Down Expand Up @@ -501,7 +501,7 @@ async def test_async_step_user_with_found_devices_v4_encryption(
)

assert result2["type"] == FlowResultType.CREATE_ENTRY
assert result2["title"] == "Thermometer 9CBC (JTYJGD03MI)"
assert result2["title"] == "Smoke Detector 9CBC (JTYJGD03MI)"
assert result2["data"] == {"bindkey": "5b51a7c91cde6707c9ef18dfda143a58"}
assert result2["result"].unique_id == "54:EF:44:E3:9C:BC"

Expand Down Expand Up @@ -549,7 +549,7 @@ async def test_async_step_user_with_found_devices_v4_encryption_wrong_key(
)

assert result2["type"] == FlowResultType.CREATE_ENTRY
assert result2["title"] == "Thermometer 9CBC (JTYJGD03MI)"
assert result2["title"] == "Smoke Detector 9CBC (JTYJGD03MI)"
assert result2["data"] == {"bindkey": "5b51a7c91cde6707c9ef18dfda143a58"}
assert result2["result"].unique_id == "54:EF:44:E3:9C:BC"

Expand Down Expand Up @@ -599,7 +599,7 @@ async def test_async_step_user_with_found_devices_v4_encryption_wrong_key_length
)

assert result2["type"] == FlowResultType.CREATE_ENTRY
assert result2["title"] == "Thermometer 9CBC (JTYJGD03MI)"
assert result2["title"] == "Smoke Detector 9CBC (JTYJGD03MI)"
assert result2["data"] == {"bindkey": "5b51a7c91cde6707c9ef18dfda143a58"}
assert result2["result"].unique_id == "54:EF:44:E3:9C:BC"

Expand Down

0 comments on commit aff4d53

Please sign in to comment.