mirror of https://github.com/home-assistant/core
Enable basic type checking for atag (#54933)
This commit is contained in:
parent
efd15344e9
commit
fedd958dc0
|
@ -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
|
||||
|
|
3
mypy.ini
3
mypy.ini
|
@ -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
|
||||
|
||||
|
|
|
@ -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.*",
|
||||
|
|
Loading…
Reference in New Issue