Bump brother
and pysnmplib
backend libraries (#89100)
* Bump brother and pysnmplib * Fix tests
This commit is contained in:
parent
62b0603b76
commit
6dc99d2ad8
7 changed files with 10 additions and 13 deletions
|
@ -1,6 +1,5 @@
|
|||
"""SNMP sensor tests."""
|
||||
|
||||
import asyncio
|
||||
from unittest.mock import MagicMock, Mock, patch
|
||||
|
||||
import pytest
|
||||
|
@ -16,11 +15,9 @@ def hlapi_mock():
|
|||
"""Mock out 3rd party API."""
|
||||
mock_data = MagicMock()
|
||||
mock_data.prettyPrint = Mock(return_value="13.5")
|
||||
future = asyncio.get_event_loop().create_future()
|
||||
future.set_result((None, None, None, [[mock_data]]))
|
||||
with patch(
|
||||
"homeassistant.components.snmp.sensor.getCmd",
|
||||
return_value=future,
|
||||
return_value=(None, None, None, [[mock_data]]),
|
||||
):
|
||||
yield
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue