mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
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
|
self._attr_temperature_unit = coordinator.data.climate.temp_unit
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def hvac_mode(self) -> str | None:
|
def hvac_mode(self) -> str | None: # type: ignore[override]
|
||||||
"""Return hvac operation ie. heat, cool mode."""
|
"""Return hvac operation ie. heat, cool mode."""
|
||||||
if self.coordinator.data.climate.hvac_mode in HVAC_MODES:
|
if self.coordinator.data.climate.hvac_mode in HVAC_MODES:
|
||||||
return self.coordinator.data.climate.hvac_mode
|
return self.coordinator.data.climate.hvac_mode
|
||||||
|
3
mypy.ini
3
mypy.ini
@ -1268,9 +1268,6 @@ warn_unreachable = false
|
|||||||
[mypy-homeassistant.components.almond.*]
|
[mypy-homeassistant.components.almond.*]
|
||||||
ignore_errors = true
|
ignore_errors = true
|
||||||
|
|
||||||
[mypy-homeassistant.components.atag.*]
|
|
||||||
ignore_errors = true
|
|
||||||
|
|
||||||
[mypy-homeassistant.components.awair.*]
|
[mypy-homeassistant.components.awair.*]
|
||||||
ignore_errors = true
|
ignore_errors = true
|
||||||
|
|
||||||
|
@ -15,7 +15,6 @@ from .model import Config, Integration
|
|||||||
# Do your best to not add anything new here.
|
# Do your best to not add anything new here.
|
||||||
IGNORED_MODULES: Final[list[str]] = [
|
IGNORED_MODULES: Final[list[str]] = [
|
||||||
"homeassistant.components.almond.*",
|
"homeassistant.components.almond.*",
|
||||||
"homeassistant.components.atag.*",
|
|
||||||
"homeassistant.components.awair.*",
|
"homeassistant.components.awair.*",
|
||||||
"homeassistant.components.azure_event_hub.*",
|
"homeassistant.components.azure_event_hub.*",
|
||||||
"homeassistant.components.blueprint.*",
|
"homeassistant.components.blueprint.*",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user