mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 17:57:55 +00:00
Please mypy. (#55069)
This commit is contained in:
parent
716abaa9b1
commit
b76e8c5722
@ -1,4 +1,5 @@
|
|||||||
"""Support for Salda Smarty XP/XV Ventilation Unit Sensors."""
|
"""Support for Salda Smarty XP/XV Ventilation Unit Sensors."""
|
||||||
|
from __future__ import annotations
|
||||||
|
|
||||||
import datetime as dt
|
import datetime as dt
|
||||||
import logging
|
import logging
|
||||||
@ -43,7 +44,7 @@ class SmartySensor(SensorEntity):
|
|||||||
):
|
):
|
||||||
"""Initialize the entity."""
|
"""Initialize the entity."""
|
||||||
self._name = name
|
self._name = name
|
||||||
self._state = None
|
self._state: dt.datetime | None = None
|
||||||
self._sensor_type = device_class
|
self._sensor_type = device_class
|
||||||
self._unit_of_measurement = unit_of_measurement
|
self._unit_of_measurement = unit_of_measurement
|
||||||
self._smarty = smarty
|
self._smarty = smarty
|
||||||
|
3
mypy.ini
3
mypy.ini
@ -1586,9 +1586,6 @@ ignore_errors = true
|
|||||||
[mypy-homeassistant.components.smarttub.*]
|
[mypy-homeassistant.components.smarttub.*]
|
||||||
ignore_errors = true
|
ignore_errors = true
|
||||||
|
|
||||||
[mypy-homeassistant.components.smarty.*]
|
|
||||||
ignore_errors = true
|
|
||||||
|
|
||||||
[mypy-homeassistant.components.solaredge.*]
|
[mypy-homeassistant.components.solaredge.*]
|
||||||
ignore_errors = true
|
ignore_errors = true
|
||||||
|
|
||||||
|
@ -121,7 +121,6 @@ IGNORED_MODULES: Final[list[str]] = [
|
|||||||
"homeassistant.components.sma.*",
|
"homeassistant.components.sma.*",
|
||||||
"homeassistant.components.smartthings.*",
|
"homeassistant.components.smartthings.*",
|
||||||
"homeassistant.components.smarttub.*",
|
"homeassistant.components.smarttub.*",
|
||||||
"homeassistant.components.smarty.*",
|
|
||||||
"homeassistant.components.solaredge.*",
|
"homeassistant.components.solaredge.*",
|
||||||
"homeassistant.components.somfy.*",
|
"homeassistant.components.somfy.*",
|
||||||
"homeassistant.components.somfy_mylink.*",
|
"homeassistant.components.somfy_mylink.*",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user