From e7ccd1a5494fc9c69c90676b1683e9b24ca24ed5 Mon Sep 17 00:00:00 2001 From: jan iversen Date: Tue, 20 Jul 2021 09:53:24 +0200 Subject: [PATCH] Correct typing and activate mypy. (#53217) --- homeassistant/components/huisbaasje/sensor.py | 2 +- mypy.ini | 3 --- script/hassfest/mypy_config.py | 1 - 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/homeassistant/components/huisbaasje/sensor.py b/homeassistant/components/huisbaasje/sensor.py index 038325ece4a..3cda3cdec00 100644 --- a/homeassistant/components/huisbaasje/sensor.py +++ b/homeassistant/components/huisbaasje/sensor.py @@ -65,7 +65,7 @@ class HuisbaasjeSensor(CoordinatorEntity, SensorEntity): return self._name @property - def device_class(self) -> str: + def device_class(self) -> str | None: """Return the device class of the sensor.""" return self._device_class diff --git a/mypy.ini b/mypy.ini index 8354b145a2f..9f37f46d713 100644 --- a/mypy.ini +++ b/mypy.ini @@ -1253,9 +1253,6 @@ ignore_errors = true [mypy-homeassistant.components.honeywell.*] ignore_errors = true -[mypy-homeassistant.components.huisbaasje.*] -ignore_errors = true - [mypy-homeassistant.components.humidifier.*] ignore_errors = true diff --git a/script/hassfest/mypy_config.py b/script/hassfest/mypy_config.py index 3be6471fa7f..666575a86ed 100644 --- a/script/hassfest/mypy_config.py +++ b/script/hassfest/mypy_config.py @@ -76,7 +76,6 @@ IGNORED_MODULES: Final[list[str]] = [ "homeassistant.components.homekit_controller.*", "homeassistant.components.homematicip_cloud.*", "homeassistant.components.honeywell.*", - "homeassistant.components.huisbaasje.*", "homeassistant.components.humidifier.*", "homeassistant.components.iaqualink.*", "homeassistant.components.icloud.*",