Fix UniFi Protect test warning (#64650)
This commit is contained in:
parent
3899600771
commit
8fb4e0934e
2 changed files with 6 additions and 0 deletions
|
@ -51,6 +51,10 @@ class MockBootstrap:
|
||||||
self.liveviews = {}
|
self.liveviews = {}
|
||||||
self.events = {}
|
self.events = {}
|
||||||
|
|
||||||
|
def process_ws_packet(self, msg: WSSubscriptionMessage) -> None:
|
||||||
|
"""Fake process method for tests."""
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class MockEntityFixture:
|
class MockEntityFixture:
|
||||||
|
|
|
@ -40,6 +40,7 @@ from .conftest import (
|
||||||
assert_entity_counts,
|
assert_entity_counts,
|
||||||
enable_entity,
|
enable_entity,
|
||||||
ids_from_device_description,
|
ids_from_device_description,
|
||||||
|
time_changed,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -569,3 +570,4 @@ async def test_sensor_update_alarm(
|
||||||
state = hass.states.get(entity_id)
|
state = hass.states.get(entity_id)
|
||||||
assert state
|
assert state
|
||||||
assert state.state == "smoke"
|
assert state.state == "smoke"
|
||||||
|
await time_changed(hass, 10)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue