From c6f1c4f55082095b8c15f82b4d5f347d96d43040 Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Fri, 19 Jan 2024 13:34:40 +0100 Subject: [PATCH] Enable strict typing for default_config (#108366) --- .strict-typing | 1 + mypy.ini | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/.strict-typing b/.strict-typing index a7758750d5e..8ef3b40e508 100644 --- a/.strict-typing +++ b/.strict-typing @@ -133,6 +133,7 @@ homeassistant.components.crownstone.* homeassistant.components.date.* homeassistant.components.datetime.* homeassistant.components.deconz.* +homeassistant.components.default_config.* homeassistant.components.demo.* homeassistant.components.derivative.* homeassistant.components.device_automation.* diff --git a/mypy.ini b/mypy.ini index 163be50e6eb..98e6e6ed781 100644 --- a/mypy.ini +++ b/mypy.ini @@ -1090,6 +1090,16 @@ disallow_untyped_defs = true warn_return_any = true warn_unreachable = true +[mypy-homeassistant.components.default_config.*] +check_untyped_defs = true +disallow_incomplete_defs = true +disallow_subclassing_any = true +disallow_untyped_calls = true +disallow_untyped_decorators = true +disallow_untyped_defs = true +warn_return_any = true +warn_unreachable = true + [mypy-homeassistant.components.demo.*] check_untyped_defs = true disallow_incomplete_defs = true