From 4b111fa99df314d1bccc5b61bfdc8fee349d027e Mon Sep 17 00:00:00 2001 From: Simone Chemelli Date: Thu, 12 Nov 2026 19:16:01 +0100 Subject: [PATCH] Add strict-typing to HP Printer (#192314) --- .strict-typing | 1 + homeassistant/components/hp_printer/quality_scale.yaml | 2 +- mypy.ini | 10 ++++++++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.strict-typing b/.strict-typing index 688a75ccdd17..18aef683c4c6 100644 --- a/.strict-typing +++ b/.strict-typing @@ -311,6 +311,7 @@ homeassistant.components.homewizard.* homeassistant.components.homeworks.* homeassistant.components.hortimax.* homeassistant.components.hotspring.* +homeassistant.components.hp_printer.* homeassistant.components.hr_energy_qube.* homeassistant.components.http.* homeassistant.components.huawei_lte.* diff --git a/homeassistant/components/hp_printer/quality_scale.yaml b/homeassistant/components/hp_printer/quality_scale.yaml index e822825f09b0..bed8cbdcc75d 100644 --- a/homeassistant/components/hp_printer/quality_scale.yaml +++ b/homeassistant/components/hp_printer/quality_scale.yaml @@ -81,4 +81,4 @@ rules: # Platinum async-dependency: done inject-websession: done - strict-typing: todo + strict-typing: done diff --git a/mypy.ini b/mypy.ini index c4acf33dd7b6..e022770af944 100644 --- a/mypy.ini +++ b/mypy.ini @@ -2864,6 +2864,16 @@ disallow_untyped_defs = true warn_return_any = true warn_unreachable = true +[mypy-homeassistant.components.hp_printer.*] +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.hr_energy_qube.*] check_untyped_defs = true disallow_incomplete_defs = true