Correct tests for gardena (#96806)
parent
eb60dc65ec
commit
a9f7522857
|
@ -3,6 +3,7 @@
|
|||
from datetime import timedelta
|
||||
from unittest.mock import Mock
|
||||
|
||||
from gardena_bluetooth.const import Battery
|
||||
from syrupy.assertion import SnapshotAssertion
|
||||
|
||||
from homeassistant.components.gardena_bluetooth import DeviceUnavailable
|
||||
|
@ -20,10 +21,13 @@ from tests.common import MockConfigEntry, async_fire_time_changed
|
|||
async def test_setup(
|
||||
hass: HomeAssistant,
|
||||
mock_entry: MockConfigEntry,
|
||||
mock_read_char_raw: dict[str, bytes],
|
||||
snapshot: SnapshotAssertion,
|
||||
) -> None:
|
||||
"""Test setup creates expected devices."""
|
||||
|
||||
mock_read_char_raw[Battery.battery_level.uuid] = Battery.battery_level.encode(100)
|
||||
|
||||
mock_entry.add_to_hass(hass)
|
||||
await hass.config_entries.async_setup(mock_entry.entry_id)
|
||||
await hass.async_block_till_done()
|
||||
|
|
Loading…
Reference in New Issue