diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b7b351b755f..b4a6704717f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -43,7 +43,7 @@ repos: hooks: - id: prettier - repo: https://github.com/cdce8p/python-typing-update - rev: v0.5.0 + rev: v0.6.0 hooks: # Run `python-typing-update` hook manually from time to time # to update python typing syntax. @@ -52,7 +52,7 @@ repos: - id: python-typing-update stages: [manual] args: - - --py310-plus + - --py311-plus - --force - --keep-updates files: ^(homeassistant|tests|script)/.+\.py$ diff --git a/homeassistant/helpers/entity_registry.py b/homeassistant/helpers/entity_registry.py index a46dd3c3a52..ff2ca255279 100644 --- a/homeassistant/helpers/entity_registry.py +++ b/homeassistant/helpers/entity_registry.py @@ -15,10 +15,9 @@ from datetime import datetime, timedelta from enum import StrEnum import logging import time -from typing import TYPE_CHECKING, Any, Literal, TypedDict, TypeVar, cast +from typing import TYPE_CHECKING, Any, Literal, NotRequired, TypedDict, TypeVar, cast import attr -from typing_extensions import NotRequired import voluptuous as vol from homeassistant.const import (