mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 15:17:35 +00:00
Fix implicit-return in unifiprotect tests (#122781)
This commit is contained in:
parent
1f488b00f8
commit
5d87a74c3c
@ -5,7 +5,6 @@ from __future__ import annotations
|
|||||||
from collections.abc import Callable, Sequence
|
from collections.abc import Callable, Sequence
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from typing import Any
|
|
||||||
from unittest.mock import Mock
|
from unittest.mock import Mock
|
||||||
|
|
||||||
from uiprotect import ProtectApiClient
|
from uiprotect import ProtectApiClient
|
||||||
@ -41,11 +40,11 @@ class MockUFPFixture:
|
|||||||
ws_subscription: Callable[[WSSubscriptionMessage], None] | None = None
|
ws_subscription: Callable[[WSSubscriptionMessage], None] | None = None
|
||||||
ws_state_subscription: Callable[[WebsocketState], None] | None = None
|
ws_state_subscription: Callable[[WebsocketState], None] | None = None
|
||||||
|
|
||||||
def ws_msg(self, msg: WSSubscriptionMessage) -> Any:
|
def ws_msg(self, msg: WSSubscriptionMessage) -> None:
|
||||||
"""Emit WS message for testing."""
|
"""Emit WS message for testing."""
|
||||||
|
|
||||||
if self.ws_subscription is not None:
|
if self.ws_subscription is not None:
|
||||||
return self.ws_subscription(msg)
|
self.ws_subscription(msg)
|
||||||
|
|
||||||
|
|
||||||
def reset_objects(bootstrap: Bootstrap):
|
def reset_objects(bootstrap: Bootstrap):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user