Adjust hddtemp test Telnet patch location (#120121)

This commit is contained in:
Marc Mueller 2024-06-21 23:19:47 +02:00 committed by GitHub
parent 4d11dd6739
commit 1aa9094d3d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -585,6 +585,7 @@ filterwarnings = [
# -- Python 3.13
# HomeAssistant
"ignore:'audioop' is deprecated and slated for removal in Python 3.13:DeprecationWarning:homeassistant.components.assist_pipeline.websocket_api",
"ignore:'telnetlib' is deprecated and slated for removal in Python 3.13:DeprecationWarning:homeassistant.components.hddtemp.sensor",
# https://pypi.org/project/nextcord/ - v2.6.0 - 2023-09-23
# https://github.com/nextcord/nextcord/issues/1174
# https://github.com/nextcord/nextcord/blob/v2.6.1/nextcord/player.py#L5

View File

@ -85,7 +85,7 @@ class TelnetMock:
@pytest.fixture
def telnetmock():
"""Mock telnet."""
with patch("telnetlib.Telnet", new=TelnetMock):
with patch("homeassistant.components.hddtemp.sensor.Telnet", new=TelnetMock):
yield