diff --git a/homeassistant/components/sfr_box/diagnostics.py b/homeassistant/components/sfr_box/diagnostics.py index c0c964cd15319c..b5aca834af5adb 100644 --- a/homeassistant/components/sfr_box/diagnostics.py +++ b/homeassistant/components/sfr_box/diagnostics.py @@ -28,27 +28,19 @@ async def async_get_config_entry_diagnostics( }, "data": { "dsl": async_redact_data( - dataclasses.asdict( - await data.system.box.dsl_get_info() # type:ignore [call-overload] - ), + dataclasses.asdict(await data.system.box.dsl_get_info()), TO_REDACT, ), "ftth": async_redact_data( - dataclasses.asdict( - await data.system.box.ftth_get_info() # type:ignore [call-overload] - ), + dataclasses.asdict(await data.system.box.ftth_get_info()), TO_REDACT, ), "system": async_redact_data( - dataclasses.asdict( - await data.system.box.system_get_info() # type:ignore [call-overload] - ), + dataclasses.asdict(await data.system.box.system_get_info()), TO_REDACT, ), "wan": async_redact_data( - dataclasses.asdict( - await data.system.box.wan_get_info() # type:ignore [call-overload] - ), + dataclasses.asdict(await data.system.box.wan_get_info()), TO_REDACT, ), }, diff --git a/homeassistant/components/xbox/media_source.py b/homeassistant/components/xbox/media_source.py index af1f1e00e1f0ef..a63f3b2027b470 100644 --- a/homeassistant/components/xbox/media_source.py +++ b/homeassistant/components/xbox/media_source.py @@ -5,7 +5,7 @@ from contextlib import suppress from dataclasses import dataclass -from pydantic.error_wrappers import ValidationError +from pydantic import ValidationError from xbox.webapi.api.client import XboxLiveClient from xbox.webapi.api.provider.catalog.models import FieldsTemplate, Image from xbox.webapi.api.provider.gameclips.models import GameclipsResponse diff --git a/homeassistant/package_constraints.txt b/homeassistant/package_constraints.txt index fb0517d9298fc7..261e784c9dcee6 100644 --- a/homeassistant/package_constraints.txt +++ b/homeassistant/package_constraints.txt @@ -133,7 +133,7 @@ backoff>=2.0 # Required to avoid breaking (#101042). # v2 has breaking changes (#99218). -pydantic==1.10.15 +pydantic==1.10.17 # Breaks asyncio # https://github.com/pubnub/python/issues/130 diff --git a/requirements_test.txt b/requirements_test.txt index 8ba327285a0ecd..47c3a834e01195 100644 --- a/requirements_test.txt +++ b/requirements_test.txt @@ -13,7 +13,7 @@ freezegun==1.5.0 mock-open==1.4.0 mypy-dev==1.11.0a6 pre-commit==3.7.1 -pydantic==1.10.15 +pydantic==1.10.17 pylint==3.2.2 pylint-per-file-ignores==1.3.2 pipdeptree==2.19.0 diff --git a/script/gen_requirements_all.py b/script/gen_requirements_all.py index a12decd5b2cc7f..50bcd9968cde6a 100755 --- a/script/gen_requirements_all.py +++ b/script/gen_requirements_all.py @@ -155,7 +155,7 @@ # Required to avoid breaking (#101042). # v2 has breaking changes (#99218). -pydantic==1.10.15 +pydantic==1.10.17 # Breaks asyncio # https://github.com/pubnub/python/issues/130 diff --git a/tests/components/lametric/conftest.py b/tests/components/lametric/conftest.py index 8202caa3b9411a..dd3885b78d9688 100644 --- a/tests/components/lametric/conftest.py +++ b/tests/components/lametric/conftest.py @@ -5,7 +5,7 @@ from unittest.mock import AsyncMock, MagicMock, patch from demetriek import CloudDevice, Device -from pydantic import parse_raw_as +from pydantic import parse_raw_as # pylint: disable=no-name-in-module import pytest from typing_extensions import Generator