Please mypy. (#55069)

This commit is contained in:
jan iversen 2021-08-23 16:02:31 +02:00 committed by GitHub
parent 716abaa9b1
commit b76e8c5722
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 5 deletions

View File

@ -1,4 +1,5 @@
"""Support for Salda Smarty XP/XV Ventilation Unit Sensors."""
from __future__ import annotations
import datetime as dt
import logging
@ -43,7 +44,7 @@ class SmartySensor(SensorEntity):
):
"""Initialize the entity."""
self._name = name
self._state = None
self._state: dt.datetime | None = None
self._sensor_type = device_class
self._unit_of_measurement = unit_of_measurement
self._smarty = smarty

View File

@ -1586,9 +1586,6 @@ ignore_errors = true
[mypy-homeassistant.components.smarttub.*]
ignore_errors = true
[mypy-homeassistant.components.smarty.*]
ignore_errors = true
[mypy-homeassistant.components.solaredge.*]
ignore_errors = true

View File

@ -121,7 +121,6 @@ IGNORED_MODULES: Final[list[str]] = [
"homeassistant.components.sma.*",
"homeassistant.components.smartthings.*",
"homeassistant.components.smarttub.*",
"homeassistant.components.smarty.*",
"homeassistant.components.solaredge.*",
"homeassistant.components.somfy.*",
"homeassistant.components.somfy_mylink.*",