1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Fix UniFi Protect test warning (#64650)

This commit is contained in:
Christopher Bailey
2022-01-21 14:00:35 -05:00
committed by GitHub
parent 3899600771
commit 8fb4e0934e
2 changed files with 6 additions and 0 deletions

View File

@@ -51,6 +51,10 @@ class MockBootstrap:
self.liveviews = {}
self.events = {}
def process_ws_packet(self, msg: WSSubscriptionMessage) -> None:
"""Fake process method for tests."""
pass
@dataclass
class MockEntityFixture:

View File

@@ -40,6 +40,7 @@ from .conftest import (
assert_entity_counts,
enable_entity,
ids_from_device_description,
time_changed,
)
@@ -569,3 +570,4 @@ async def test_sensor_update_alarm(
state = hass.states.get(entity_id)
assert state
assert state.state == "smoke"
await time_changed(hass, 10)