Enable basic type checking for atag (#54933)

This commit is contained in:
Erik Montnemery 2021-08-21 13:39:56 +02:00 committed by GitHub
parent efd15344e9
commit fedd958dc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 5 deletions

View File

@ -47,7 +47,7 @@ class AtagThermostat(AtagEntity, ClimateEntity):
self._attr_temperature_unit = coordinator.data.climate.temp_unit
@property
def hvac_mode(self) -> str | None:
def hvac_mode(self) -> str | None: # type: ignore[override]
"""Return hvac operation ie. heat, cool mode."""
if self.coordinator.data.climate.hvac_mode in HVAC_MODES:
return self.coordinator.data.climate.hvac_mode

View File

@ -1268,9 +1268,6 @@ warn_unreachable = false
[mypy-homeassistant.components.almond.*]
ignore_errors = true
[mypy-homeassistant.components.atag.*]
ignore_errors = true
[mypy-homeassistant.components.awair.*]
ignore_errors = true

View File

@ -15,7 +15,6 @@ from .model import Config, Integration
# Do your best to not add anything new here.
IGNORED_MODULES: Final[list[str]] = [
"homeassistant.components.almond.*",
"homeassistant.components.atag.*",
"homeassistant.components.awair.*",
"homeassistant.components.azure_event_hub.*",
"homeassistant.components.blueprint.*",