Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix UniFi Protect test warning #64650

Merged
merged 1 commit into from Jan 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions tests/components/unifiprotect/conftest.py
Expand Up @@ -51,6 +51,10 @@ def reset_objects(self) -> None:
self.liveviews = {}
self.events = {}

def process_ws_packet(self, msg: WSSubscriptionMessage) -> None:
"""Fake process method for tests."""
pass


@dataclass
class MockEntityFixture:
Expand Down
2 changes: 2 additions & 0 deletions tests/components/unifiprotect/test_sensor.py
Expand Up @@ -40,6 +40,7 @@
assert_entity_counts,
enable_entity,
ids_from_device_description,
time_changed,
)


Expand Down Expand Up @@ -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)