Fix bad data with inkbird bbq sensors (#76739)

This commit is contained in:
J. Nick Koston 2022-08-14 20:48:06 -10:00 committed by GitHub
parent 161e533c5f
commit 9dedba4843
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 8 deletions

View file

@ -10,7 +10,7 @@
{ "local_name": "xBBQ*" },
{ "local_name": "tps" }
],
"requirements": ["inkbird-ble==0.5.2"],
"requirements": ["inkbird-ble==0.5.5"],
"dependencies": ["bluetooth"],
"codeowners": ["@bdraco"],
"iot_class": "local_push"

View file

@ -899,7 +899,7 @@ influxdb-client==1.24.0
influxdb==5.3.1
# homeassistant.components.inkbird
inkbird-ble==0.5.2
inkbird-ble==0.5.5
# homeassistant.components.insteon
insteon-frontend-home-assistant==0.2.0

View file

@ -652,7 +652,7 @@ influxdb-client==1.24.0
influxdb==5.3.1
# homeassistant.components.inkbird
inkbird-ble==0.5.2
inkbird-ble==0.5.5
# homeassistant.components.insteon
insteon-frontend-home-assistant==0.2.0

View file

@ -25,7 +25,7 @@ async def test_async_step_bluetooth_valid_device(hass):
result["flow_id"], user_input={}
)
assert result2["type"] == FlowResultType.CREATE_ENTRY
assert result2["title"] == "iBBQ 6AADDD4CAC3D"
assert result2["title"] == "iBBQ AC3D"
assert result2["data"] == {}
assert result2["result"].unique_id == "4125DDBA-2774-4851-9889-6AADDD4CAC3D"
@ -69,7 +69,7 @@ async def test_async_step_user_with_found_devices(hass):
user_input={"address": "61DE521B-F0BF-9F44-64D4-75BBE1738105"},
)
assert result2["type"] == FlowResultType.CREATE_ENTRY
assert result2["title"] == "IBS-TH 75BBE1738105"
assert result2["title"] == "IBS-TH 8105"
assert result2["data"] == {}
assert result2["result"].unique_id == "61DE521B-F0BF-9F44-64D4-75BBE1738105"
@ -184,7 +184,7 @@ async def test_async_step_user_takes_precedence_over_discovery(hass):
user_input={"address": "61DE521B-F0BF-9F44-64D4-75BBE1738105"},
)
assert result2["type"] == FlowResultType.CREATE_ENTRY
assert result2["title"] == "IBS-TH 75BBE1738105"
assert result2["title"] == "IBS-TH 8105"
assert result2["data"] == {}
assert result2["result"].unique_id == "61DE521B-F0BF-9F44-64D4-75BBE1738105"

View file

@ -39,10 +39,10 @@ async def test_sensors(hass):
await hass.async_block_till_done()
assert len(hass.states.async_all()) == 3
temp_sensor = hass.states.get("sensor.ibs_th_75bbe1738105_battery")
temp_sensor = hass.states.get("sensor.ibs_th_8105_battery")
temp_sensor_attribtes = temp_sensor.attributes
assert temp_sensor.state == "87"
assert temp_sensor_attribtes[ATTR_FRIENDLY_NAME] == "IBS-TH 75BBE1738105 Battery"
assert temp_sensor_attribtes[ATTR_FRIENDLY_NAME] == "IBS-TH 8105 Battery"
assert temp_sensor_attribtes[ATTR_UNIT_OF_MEASUREMENT] == "%"
assert temp_sensor_attribtes[ATTR_STATE_CLASS] == "measurement"