mirror of
https://github.com/home-assistant/core.git
synced 2026-08-24 10:13:52 -05:00
Bump oralb-ble to 1.1.3 (#177024)
This commit is contained in:
@@ -13,5 +13,5 @@
|
||||
"integration_type": "device",
|
||||
"iot_class": "local_push",
|
||||
"loggers": ["oralb_ble"],
|
||||
"requirements": ["oralb-ble==1.1.1"]
|
||||
"requirements": ["oralb-ble==1.1.3"]
|
||||
}
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
"off": "[%key:common::state::off%]",
|
||||
"sensitive": "Sensitive",
|
||||
"settings": "Settings",
|
||||
"smart_adapt": "Smart adapt",
|
||||
"super_sensitive": "Super sensitive",
|
||||
"tongue_cleaning": "Tongue clean",
|
||||
"turbo": "Turbo",
|
||||
@@ -77,6 +78,7 @@
|
||||
"initializing": "Initializing",
|
||||
"off": "[%key:common::state::off%]",
|
||||
"pcb_test": "PCB test",
|
||||
"post_brushing_statistics": "Post-brushing statistics",
|
||||
"running": "Running",
|
||||
"selection_menu": "Selection menu",
|
||||
"setup": "Setup",
|
||||
|
||||
Generated
+1
-1
@@ -1808,7 +1808,7 @@ openwrt-ubus-rpc==0.0.3
|
||||
opower==0.18.6
|
||||
|
||||
# homeassistant.components.oralb
|
||||
oralb-ble==1.1.1
|
||||
oralb-ble==1.1.3
|
||||
|
||||
# homeassistant.components.oru
|
||||
oru==0.1.11
|
||||
|
||||
@@ -59,6 +59,17 @@ ORALB_IO_SIX_SECTORS_LAST_SECTOR_SERVICE_INFO = BluetoothServiceInfo(
|
||||
source="local",
|
||||
)
|
||||
|
||||
ORALB_IO_POST_BRUSHING_SMART_ADAPT_SERVICE_INFO = BluetoothServiceInfo(
|
||||
name="Oral-B Toothbrush",
|
||||
address="78:DB:2F:C2:48:BE",
|
||||
rssi=-63,
|
||||
# post-brushing summary screens (state 10) after a Smart Adapt (mode 11) session
|
||||
manufacturer_data={220: b"\x0612\x0ar\x00\x05\x0b\x01\x00\x06"},
|
||||
service_uuids=[],
|
||||
service_data={},
|
||||
source="local",
|
||||
)
|
||||
|
||||
ORALB_IO_SERIES_6_SERVICE_INFO = BluetoothServiceInfoBleak(
|
||||
name="Oral-B Toothbrush",
|
||||
address="B0:D2:78:20:1D:CF",
|
||||
|
||||
@@ -16,6 +16,7 @@ from homeassistant.core import HomeAssistant
|
||||
from homeassistant.util import dt as dt_util
|
||||
|
||||
from . import (
|
||||
ORALB_IO_POST_BRUSHING_SMART_ADAPT_SERVICE_INFO,
|
||||
ORALB_IO_SERIES_4_SERVICE_INFO,
|
||||
ORALB_IO_SERIES_6_SERVICE_INFO,
|
||||
ORALB_IO_SIX_SECTORS_LAST_SECTOR_SERVICE_INFO,
|
||||
@@ -188,6 +189,33 @@ async def test_sector_sensor_six_sectors(hass: HomeAssistant) -> None:
|
||||
await hass.async_block_till_done()
|
||||
|
||||
|
||||
@pytest.mark.usefixtures("entity_registry_enabled_by_default")
|
||||
async def test_sensors_post_brushing_smart_adapt(hass: HomeAssistant) -> None:
|
||||
"""Test the post-brushing statistics state and the Smart Adapt mode."""
|
||||
entry = MockConfigEntry(
|
||||
domain=DOMAIN,
|
||||
unique_id=ORALB_IO_POST_BRUSHING_SMART_ADAPT_SERVICE_INFO.address,
|
||||
)
|
||||
entry.add_to_hass(hass)
|
||||
|
||||
assert await hass.config_entries.async_setup(entry.entry_id)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
inject_bluetooth_service_info(hass, ORALB_IO_POST_BRUSHING_SMART_ADAPT_SERVICE_INFO)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
toothbrush_sensor = hass.states.get("sensor.io_series_48be")
|
||||
assert toothbrush_sensor.state == "post_brushing_statistics"
|
||||
assert "post_brushing_statistics" in toothbrush_sensor.attributes[ATTR_OPTIONS]
|
||||
|
||||
mode_sensor = hass.states.get("sensor.io_series_48be_brushing_mode")
|
||||
assert mode_sensor.state == "smart_adapt"
|
||||
assert "smart_adapt" in mode_sensor.attributes[ATTR_OPTIONS]
|
||||
|
||||
assert await hass.config_entries.async_unload(entry.entry_id)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
|
||||
async def test_sensors_battery(hass: HomeAssistant) -> None:
|
||||
"""Test receiving battery percentage."""
|
||||
entry = MockConfigEntry(
|
||||
|
||||
Reference in New Issue
Block a user