Skip to content

Commit

Permalink
Correct typing and activate mypy. (home-assistant#53217)
Browse files Browse the repository at this point in the history
  • Loading branch information
janiversen authored Jul 20, 2021
1 parent ab36ac7 commit e7ccd1a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion homeassistant/components/huisbaasje/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def name(self) -> str:
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

Expand Down
3 changes: 0 additions & 3 deletions mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 0 additions & 1 deletion script/hassfest/mypy_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@
"homeassistant.components.homekit_controller.*",
"homeassistant.components.homematicip_cloud.*",
"homeassistant.components.honeywell.*",
"homeassistant.components.huisbaasje.*",
"homeassistant.components.humidifier.*",
"homeassistant.components.iaqualink.*",
"homeassistant.components.icloud.*",
Expand Down

0 comments on commit e7ccd1a

Please sign in to comment.