diff --git a/pyproject.toml b/pyproject.toml index 56a10cfcd71..6578bcb5f36 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 diff --git a/tests/components/hddtemp/test_sensor.py b/tests/components/hddtemp/test_sensor.py index f1851f959f0..2bd0519c12c 100644 --- a/tests/components/hddtemp/test_sensor.py +++ b/tests/components/hddtemp/test_sensor.py @@ -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