We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42629f6 commit 61a5269Copy full SHA for 61a5269
src/anova_wifi/mocks/anova_api.py
@@ -6,7 +6,7 @@
6
7
from aiohttp import ClientSession
8
9
-from anova_wifi import AnovaWebsocketHandler
+from anova_wifi import AnovaWebsocketHandler, NoDevicesFound
10
11
DUMMY_ID = "anova_id"
12
@@ -146,6 +146,8 @@ async def create_websocket_side_effect() -> None:
146
],
147
)
148
await api_mock.websocket_handler.connect()
149
+ if not api_mock.websocket_handler.devices:
150
+ raise NoDevicesFound("No devices were found on the websocket.")
151
152
api_mock.authenticate.side_effect = authenticate_side_effect
153
api_mock.create_websocket.side_effect = create_websocket_side_effect
0 commit comments