mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Correct typing and activate mypy. (#53217)
This commit is contained in:
parent
ab36ac7a94
commit
e7ccd1a549
@ -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
|
||||
|
||||
|
3
mypy.ini
3
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
|
||||
|
||||
|
@ -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.*",
|
||||
|
Loading…
x
Reference in New Issue
Block a user