diff --git a/.strict-typing b/.strict-typing index 0cbb1aa92e9..e421aa6a354 100644 --- a/.strict-typing +++ b/.strict-typing @@ -17,6 +17,7 @@ homeassistant.helpers.area_registry homeassistant.helpers.condition homeassistant.helpers.debounce homeassistant.helpers.deprecation +homeassistant.helpers.device_registry homeassistant.helpers.discovery homeassistant.helpers.dispatcher homeassistant.helpers.entity diff --git a/homeassistant/helpers/device_registry.py b/homeassistant/helpers/device_registry.py index 57497df2d7e..908db74d40d 100644 --- a/homeassistant/helpers/device_registry.py +++ b/homeassistant/helpers/device_registry.py @@ -21,8 +21,6 @@ from .debounce import Debouncer from .frame import report from .typing import UNDEFINED, UndefinedType -# mypy: disallow_any_generics - if TYPE_CHECKING: from homeassistant.config_entries import ConfigEntry diff --git a/mypy.ini b/mypy.ini index 1218992ab3a..758dd96ef42 100644 --- a/mypy.ini +++ b/mypy.ini @@ -63,6 +63,9 @@ disallow_any_generics = true [mypy-homeassistant.helpers.deprecation] disallow_any_generics = true +[mypy-homeassistant.helpers.device_registry] +disallow_any_generics = true + [mypy-homeassistant.helpers.discovery] disallow_any_generics = true