Correct typing and activate mypy. (#53217)

This commit is contained in:
jan iversen 2021-07-20 09:53:24 +02:00 committed by GitHub
parent ab36ac7a94
commit e7ccd1a549
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 5 deletions

View File

@ -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

View File

@ -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

View File

@ -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.*",