mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Add fixtures for Axis rtsp client and adapt tests to use them (#47901)
* Add a fixture for rtsp client and adapt tests to use it * Better fixtures for RTSP events and signals
This commit is contained in:
@@ -263,9 +263,7 @@ class AxisNetworkDevice:
|
||||
def disconnect_from_stream(self):
|
||||
"""Stop stream."""
|
||||
if self.api.stream.state != STATE_STOPPED:
|
||||
self.api.stream.connection_status_callback.remove(
|
||||
self.async_connection_status_callback
|
||||
)
|
||||
self.api.stream.connection_status_callback.clear()
|
||||
self.api.stream.stop()
|
||||
|
||||
async def shutdown(self, event):
|
||||
|
||||
Reference in New Issue
Block a user